nanogui: XCreateWindow/XDestroyWindow memory leak?


Previous by date: 13 Nov 2007 00:49:58 +0000 XCreateWindow/XDestroyWindow memory leak?, Martin Kajdas
Next by date: 13 Nov 2007 00:49:58 +0000 Re: How to adjust character distance of a ttf font, Greg Haerr
Previous in thread: 13 Nov 2007 00:49:58 +0000 XCreateWindow/XDestroyWindow memory leak?, Martin Kajdas
Next in thread: 13 Nov 2007 00:49:58 +0000 Re: XCreateWindow/XDestroyWindow memory leak?, Martin Kajdas

Subject: Re: [nanogui] XCreateWindow/XDestroyWindow memory leak?
From: "Greg Haerr" ####@####.####
Date: 13 Nov 2007 00:49:58 +0000
Message-Id: <00eb01c8258f$06c31b60$6401a8c0@winXP>

> I can see a FIXME message in DestWind.c to destroy various structures
associated with a window.

Hmmm.  The only auxillary structures around a Window type in NXLIB
have to do with window properties, see ChProperty.c.  However,
these are properly deallocated, and only used if XChangeProperty
is used (please check).

There are two known memory leaks in NXLIB, having to do with
clip regions: XSetClipMask and XSetClipRegion, both in SetClip.c.

Add a printf() to the above functions to see whether these are called
from FLTK.  Should this be the case, then I'll have to research
why the regions couldn't be deleted within the NXLIB functions.
I think it has to do with the microwindows GrXXX clip functions
requiring the region to exist after passing to GrSetGCRegion().

The fix here may finally be (without modifying microwindows) to
keep any region allocated for a GC in the local NXLIB GC struct,
and then release it when the GC is deallocated.

Regards,

Greg

Previous by date: 13 Nov 2007 00:49:58 +0000 XCreateWindow/XDestroyWindow memory leak?, Martin Kajdas
Next by date: 13 Nov 2007 00:49:58 +0000 Re: How to adjust character distance of a ttf font, Greg Haerr
Previous in thread: 13 Nov 2007 00:49:58 +0000 XCreateWindow/XDestroyWindow memory leak?, Martin Kajdas
Next in thread: 13 Nov 2007 00:49:58 +0000 Re: XCreateWindow/XDestroyWindow memory leak?, Martin Kajdas


Powered by ezmlm-browse 0.20.