XDestroyImage
The XDestroyImage() function deallocates the memory associated with the XImage structure.
Note that when the image is created using XCreateImage(), XGetImage(), or XSubImage(), the destroy procedure that this macro calls frees both the image structure and the data pointed to by the image structure.
XDestroyImage The XDestroyImage() function deallocates the memory associated with the XImage structure. Note that when the image is created using XCreateImage(), XGetImage(), or XSubImage(), the destroy procedure that this macro calls frees both the image structure and the data pointed to by the image structure.