nanogui: XCreateWindow/XDestroyWindow memory leak?


Previous by date: 15 Nov 2007 23:11:43 +0000 Re: XCreateWindow/XDestroyWindow memory leak?, Martin Kajdas
Next by date: 15 Nov 2007 23:11:43 +0000 Re: XCreateWindow/XDestroyWindow memory leak?, Greg Haerr
Previous in thread: 15 Nov 2007 23:11:43 +0000 Re: XCreateWindow/XDestroyWindow memory leak?, Martin Kajdas
Next in thread: 15 Nov 2007 23:11:43 +0000 Re: XCreateWindow/XDestroyWindow memory leak?, Greg Haerr

Subject: RE: [nanogui] XCreateWindow/XDestroyWindow memory leak?
From: "Martin Kajdas" ####@####.####
Date: 15 Nov 2007 23:11:43 +0000
Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC24F9940@mkmail.MKPROD.COM>

> The problem is with _nxAddProperty function in the way is creates
linked lists of windows and properties.
> The first window/property is not tested correctly and it is
duplicated, and when deletion is performed, the duplication is removed
> but not the original and leak occurs.

For some reason my fix is crashing my system (invalid memory reference)
after about 15 window create/destroy sequences.
It appears that the line:
	win->w = w;
which initializes the pointer making the algorithm work also causes the
algorithm to fail.

I do not believe there is a problem with the fix, but because of the
fix, the algorithm now executes code that it was never executing before
and therefore it was not tested.
I think there is another bug somewhere and my fix just opened it up.
Back to debugging...

Previous by date: 15 Nov 2007 23:11:43 +0000 Re: XCreateWindow/XDestroyWindow memory leak?, Martin Kajdas
Next by date: 15 Nov 2007 23:11:43 +0000 Re: XCreateWindow/XDestroyWindow memory leak?, Greg Haerr
Previous in thread: 15 Nov 2007 23:11:43 +0000 Re: XCreateWindow/XDestroyWindow memory leak?, Martin Kajdas
Next in thread: 15 Nov 2007 23:11:43 +0000 Re: XCreateWindow/XDestroyWindow memory leak?, Greg Haerr


Powered by ezmlm-browse 0.20.