nanogui: repeated XSetClipMask question


Previous by date: 16 Jan 2007 02:29:40 +0000 Re: Cross Compiling Mircrowindows for ARM, Greg Haerr
Next by date: 16 Jan 2007 02:29:40 +0000 Re: Compiling Nano-X, Greg Haerr
Previous in thread: 16 Jan 2007 02:29:40 +0000 Re: repeated XSetClipMask question, Robin Clark
Next in thread:

Subject: Re: [nanogui] repeated XSetClipMask question
From: "Greg Haerr" ####@####.####
Date: 16 Jan 2007 02:29:40 +0000
Message-Id: <1d1901c73916$0cbe99b0$6401a8c0@winXP>

: We fixed this memory leak by making the 
: region a static pointer and calling destroy on
: re-entering the function if the pointer is not null.

If it works for you, great.  I'm not sure this will
work for the general case, since the mask region
isn't associated with the specific gc, but all
gc's.  Another fix (more work) might be to
mark the region r as 'temp' and have
GrSetGCRegion delete temp regions when
a new region is specified...

: 
: old C++ trick ;-)

Yes...  'static' comes in handy in C too !


Previous by date: 16 Jan 2007 02:29:40 +0000 Re: Cross Compiling Mircrowindows for ARM, Greg Haerr
Next by date: 16 Jan 2007 02:29:40 +0000 Re: Compiling Nano-X, Greg Haerr
Previous in thread: 16 Jan 2007 02:29:40 +0000 Re: repeated XSetClipMask question, Robin Clark
Next in thread:


Powered by ezmlm-browse 0.20.