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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to