[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    [OpenJDK 2D-Dev] CR 6974985 Redispatched, P3 java/classes_2d Jave2Demo threw exceptions when xrender
From:       linuxhippy () gmail ! com (Clemens Eisserer)
Date:       2010-08-30 8:11:50
Message-ID: AANLkTimFnm9shV6OGs9hYKtWP0yKvY_nP56d3u_Hierh () mail ! gmail ! com
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic