Re: In-loop releasing of objects does not free memory?
Re: In-loop releasing of objects does not free memory?
- Subject: Re: In-loop releasing of objects does not free memory?
- From: Keith Duncan <email@hidden>
- Date: Thu, 14 Feb 2008 21:22:20 +0000
When you aren't using GC, calling -drain on your AutoreleasePool
object will act just like you called -release on it. As a result, in
a loop construct like that, you'll crash if you aren't using GC.
I've filed a bug on this and would encourage everyone to do the same.
In my opinion -drain should do as the name implies; call -release on
all the objects currently autorelease'd but not release the pool itself.
Keith
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden