• 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: Will this leak memory?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Will this leak memory?


  • Subject: Re: Will this leak memory?
  • From: lbland <email@hidden>
  • Date: Fri, 5 Sep 2003 10:08:48 -0400

On Friday, September 5, 2003, at 09:36 AM, Neil Earnshaw wrote:

The dealloc log message never gets called.

Of course it will! :--)

but it will only leak once, which is what you probably want.
(it will free memory when the process is killed).

If it is a Singleton then why not overload your release method:

- (void)release
{
NSLog(@"Hey you! don't release me!");

// repeat 3 times...
// I will not call this, I will not call this, I will not call this: [super release];

}


Lance Bland
mailto:email@hidden
VVI
888-VVI-PLOT
http://www.vvi.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Will this leak memory?
      • From: publiclook <email@hidden>
References: 
 >Will this leak memory? (From: Neil Earnshaw <email@hidden>)

  • Prev by Date: Re: Will this leak memory?
  • Next by Date: Re: Will this leak memory?
  • Previous by thread: Re: Will this leak memory?
  • Next by thread: Re: Will this leak memory?
  • Index(es):
    • Date
    • Thread