[OpenJDK 2D-Dev] CR 6974985 Redispatched, P3 java/classes_2d Jave2Demo threw exceptions when xrender enabled in OEL5.5

Clemens Eisserer linuxhippy at gmail.com
Mon Aug 30 08:11:50 UTC 2010

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

More information about the 2d-dev mailing list