• 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
Re: Memory management on returning nil in init
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory management on returning nil in init


  • Subject: Re: Memory management on returning nil in init
  • From: Eiko Bleicher <email@hidden>
  • Date: Mon, 21 Jun 2010 23:08:28 +0200

Thanks, this really gave some new twists. Different from Apple's documentation but safer.

Eiko


> As others have said: yes, you leak.  But the solution is not to call
> [self release], what you should do is call [super dealloc].  See here
> for a previous discussion of this topic:
>
> <http://lists.apple.com/archives/Objc-language/2008/Sep/msg00133.html>
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 email@hidden
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>

_______________________________________________

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

References: 
 >Memory management on returning nil in init (From: Eiko Bleicher <email@hidden>)
 >Re: Memory management on returning nil in init (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Async NSURLConnection and blocks (was: Running NSURLConnection from within an NSOperation?)
  • Next by Date: Re: Threaded DOM operations
  • Previous by thread: Re: Memory management on returning nil in init
  • Next by thread: Re: Memory management on returning nil in init
  • Index(es):
    • Date
    • Thread