• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
double free error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: double free error
      • From: "Henry McGilton (Boulevardier)" <email@hidden>
  • Prev by Date: Re: App Launches in Finder, Hangs While Launching in Debugger
  • Next by Date: Re: Wierd Crash Report
  • Previous by thread: Re: Wierd Crash Report
  • Next by thread: Re: double free error
  • Index(es):
    • Date
    • Thread