Re: Does cocoa just leak?
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