• 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: [newbie] NSString code so it won't leak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [newbie] NSString code so it won't leak


  • Subject: Re: [newbie] NSString code so it won't leak
  • From: Charles Srstka <email@hidden>
  • Date: Thu, 12 Sep 2002 04:00:00 -0500

On Wednesday, September 11, 2002, at 10:59 PM, Shawn Erickson wrote:

The issue appears to be that the autorelease pool that they are being put into is _not_ being released... I did wrap the call to [self extractWithData:[sender resourceData]]; with an autorelease pool an the leaks went away...

That's what I thought. Okay, Dean, now you have a simple solution to your problem - wrap the code inside an autorelease pool, as I described in my previous message in this thread.

Charles
_______________________________________________
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: [newbie] NSString code so it won't leak
      • From: Dean Davis <email@hidden>
References: 
 >Re: [newbie] NSString code so it won't leak (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Start using Cocoa
  • Next by Date: Re: Start using Cocoa
  • Previous by thread: Re: [newbie] NSString code so it won't leak
  • Next by thread: Re: [newbie] NSString code so it won't leak
  • Index(es):
    • Date
    • Thread