Re: NSReleasePool issue
Re: NSReleasePool issue
- Subject: Re: NSReleasePool issue
- From: Jens Alfke <email@hidden>
- Date: Sat, 21 Jun 2014 10:25:36 -0700
On Jun 21, 2014, at 7:39 AM, Kyle Sluder <email@hidden> wrote:
> You should add the @autoreleasepool around NSApplicationMain. I don't know why it's missing from the Mac template.
I disagree. It’s pointless to have an autorelease pool that won’t be drained till the application quits. Anything autoreleased into that pool will be effectively leaked, and draining the pool on quit does nothing but slow down termination.
The OP’s issue looks like an OS bug — there’s no application code on the stack at the time of the autorelease. Should be reported to Apple.
—Jens
_______________________________________________
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