double free error
double free error
- Subject: double free error
- From: "Eric E. Dolecki" <email@hidden>
- Date: Mon, 14 Dec 2009 15:45:56 -0500
I was receiving malloc double free errors when a view removed itself, so all
of the releases I was doing in the view I commented out, the view killing
itself after it animates from visual view:
- (void) killMe:(NSString *)animationID finished:(NSNumber *)finished
context:(void *)context {
[self.view removeFromSuperview];
}
I no longer receive the malloc double free errors. I was creating NSStrings
and NSDateFormatters (init type stuff), all of which I previously was
releasing myself. Does it sound reasonable that the removeFromSuperview was
cleaning all that up already and thus the releases caused the errors? I am
trying to still get my head around memory management.
Thanks,
Eric
_______________________________________________
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