gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leak objects?


From: Fred Kiefer
Subject: Re: Leak objects?
Date: Sun, 03 Apr 2011 12:59:04 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8

On 30.03.2011 10:54, Fred Kiefer wrote:
When running GSTest and checking the memory usage with the build in
memory panel, I noticed that when the NSAimation test is running we seem
to be leaking GSMutableArray objects. I remember resolving an issue in
that test a long time ago and I was convinced that this test wont leak
objects. Looks like something changes since then.
Could somebody please check, whether changed behaviour in base leads to
this result?
I don't think this potential bug is a release stopper. But it would be
good to understand whether this is specific to my machine (64 bit
OpenSuse 11.4) or a general problem.

I think I found the reason for this leak, but I would prefer for Richard to look into this before applying a patch.

I think it is the class GSRunLoopThreadInfo (in NSThread.m) that leaks its ivar performers. A simple RELEASE(performers) in the dealloc method should fix this.

I also had a quick look into the fire method and don't quite understand why we copy the array there. Wouldn't it be much fast to replace the ivar with a new empty array and reuse the original array in the loop?
But this isn't a bug fix and shouldn't go in now.

Fred



reply via email to

[Prev in Thread] Current Thread [Next in Thread]