Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!SAM.CS.CMU.EDU!Francois.Bitz From: Francois.Bitz@SAM.CS.CMU.EDU Newsgroups: comp.windows.x Subject: Freeing only Ximage struct. (XDestroyImage?) Message-ID: <8902210058.AA21019@ATHENA.MIT.EDU> Date: 21 Feb 89 00:58:13 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 15 I am confused on how to free only the XImage structure and not the image data that might be associated with it. I use XCreateImage to get a pointer to an XImage; then I want to free the space taken up by the structure after having done a XPutImage() call. The doc says that the image data will also be freed. could I just do a free(Ximagepointer) instead? If I dont't free them up then I get some allocation errors in XcreateImage after having displayed a lot of images (100's). Thanks