Path: utzoo!attcan!uunet!cs.utexas.edu!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: 17 Jun 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