Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!rpi!batcomputer!cornell!rochester!rit!tropix!moscom!ur-valhalla!uhura.cc.rochester.edu!sunybcs!rutgers!tut.cis.ohio-state.edu!ucbvax!pasteur!cory.Berkeley.EDU!dheller From: dheller@cory.Berkeley.EDU (Dan Heller) Newsgroups: comp.windows.x Subject: Re: XCreateImage/XDestroyImage question (correction) Summary: oops! Message-ID: <14738@pasteur.Berkeley.EDU> Date: 22 Jul 89 17:42:34 GMT References: <1202@masscomp.UUCP> Sender: news@pasteur.Berkeley.EDU Reply-To: dheller@cory.Berkeley.EDU.UUCP (Dan Heller) Organization: University of California, Berkeley Lines: 8 > Should you set the data pointer in the image > structure to NULL before calling XDestroyImage? In my last response, I said you should set the data = malloc(1). You don't need to do that -- _XDestroyImage checks against NULL before it frees the image. Dan Heller