[comp.windows.x] Freeing only Ximage struct.

Francois.Bitz@SAM.CS.CMU.EDU (02/21/89)

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