The
XFreePixmap()
function first deletes the association between the pixmap ID and the pixmap.
Then, the X server frees the pixmap storage when there are no references to it.
The pixmap should never be referenced again.
XFreePixmap()
can generate a
BadPixmap
error.
Diagnostics
BadPixmap
A value for a Pixmap argument does not name a
defined Pixmap.