discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Memory leak?


From: Alexander Malmberg
Subject: Re: Memory leak?
Date: Wed, 05 Jan 2005 17:11:03 +0100
User-agent: Mozilla Thunderbird 0.9 (X11/20041124)

Marko Riedel wrote:
Hello there,

I thought the app releases the main autorelease pool during idle times via
the runloop?

-gui creates a new autorelease pool at the start of each runloop iteration and releases it after the iteration. This is not the same autorelease pool you create in main().

(-gui wraps lots of other things in autorelease pools as well, so if you initialization in e.g. delegate callbacks, you don't need your own pools. However, -gui can't touch an autorelease pool created in main() at all.)

- Alexander Malmberg



reply via email to

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