That makes lots of sense, never even expected that to happen. Adding a local 
variable and setting it to the value before releasing it and returning that 
variable fixes the issue. I am still looking to an link to explanation in 
detail as to why this happens. If it's as I said, then I do not think I need it.

On Jul 28, 2011, at 4:35 PM, Dave DeLong wrote:

> It kind of looks like foundCookieJar is an ivar, which means that "return 
> foundCookieJar" is really going to be "return self->foundCookieJar".  Since 
> you set "self" to "nil", you're trying to dereference a NULL pointer, which 
> is a great way to crash your app.
> 
> HTH,
> 
> Dave
_______________________________________________

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