Re: All my leaks are gone... but now a memory warning?!
Re: All my leaks are gone... but now a memory warning?!
- Subject: Re: All my leaks are gone... but now a memory warning?!
- From: Charles Srstka <email@hidden>
- Date: Tue, 3 Mar 2009 23:27:04 -0600
On Mar 3, 2009, at 10:27 PM, James Cicenia wrote:
self.spvc = [[StatePickViewController
alloc]initWithNibName:@"StatePicker" bundle:nil];
What type of property is spvc? Does it simply assign, or does it
retain its value? If the latter, you may end up with the object above
getting a retain count of 1 from the init method, and then upping it
to 2 by setting the spvc property, thus causing it never to get
deallocated since the eventual 'release' operation would simply
decrement its retain count back to 1.
Charles
_______________________________________________
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