Hello again,

I got confirmation that indeed Pictures are automatically freed on
XWindowDestroy but not so for XFreePixmap.

The best solution would be to call XrenderFreePicture before calling
XDestroyWindows, however unlike pixmaps, windows aren't destroyed in
the dispose-code - so this probably would require some refactoring. Do
you know why windows are destroyed immediatly, instead of just beeing
unmapped and destroyed by the dispose-code?

The ugly/easy solution would be to check wether the drawable was a
pixmap, and only then free the pictures associated with it. However
this relies on an implementation detail of the XOrg implementation.

Thanks, Clemens

Reply via email to