Re: Weird release problem on iPhone code
Re: Weird release problem on iPhone code
- Subject: Re: Weird release problem on iPhone code
- From: Jens Alfke <email@hidden>
- Date: Thu, 18 Mar 2010 20:48:04 -0700
On Mar 18, 2010, at 8:43 PM, William Squires wrote:
> If I uncomment any of the object releases above, the app crashes in the simulator, and all the call-stack items are gray (non-user code). But if I don't release them, they'll leak memory, won't they, since iPhone OS doesn't have GC?
No. You don’t own any references to those objects, because you didn’t get them from methods like ‘alloc’, ‘retain’ or ‘copy’. You should reread the memory management guidelines…
—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