• 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: Does cocoa just leak?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does cocoa just leak?


  • Subject: Re: Does cocoa just leak?
  • From: Deirdre Saoirse Moen <email@hidden>
  • Date: Sun, 30 Sep 2001 12:34:07 -0700

This is a really great tip and should be a tech note (if it isn't already; a quick search didn't find one).

At 10:50 AM -0700 9/30/01, Vince DeMarco wrote:
On Saturday, September 29, 2001, at 08:37 pm, Rosyna wrote:
for (i=0;i<5000;i++)
[[instance URL] path];

Reimplement the above like this

for(i=0;i<5000;i++){
NSAutoreleasePool *pool;

pool = [[NSAutoreleasePool alloc] init];

[instance ULR];

/* Do lots of other interesting stuff */

[pool release];
}

Everything should be okay now.

--
_Deirdre rm -rf /bin/laden http://deirdre.net


  • Follow-Ups:
    • Re: Does cocoa just leak?
      • From: "Erik M. Buck" <email@hidden>
References: 
 >Re: Does cocoa just leak? (From: Vince DeMarco <email@hidden>)

  • Prev by Date: Re: Makin' frameworks
  • Next by Date: Re: Does cocoa just leak?
  • Previous by thread: Re: Does cocoa just leak?
  • Next by thread: Re: Does cocoa just leak?
  • Index(es):
    • Date
    • Thread