Re: NSHomeDirectory() leak?
Re: NSHomeDirectory() leak?
- Subject: Re: NSHomeDirectory() leak?
- From: lbland <email@hidden>
- Date: Sun, 1 Feb 2004 09:55:22 -0500
On Feb 1, 2004, at 9:20 AM, ralph fogg wrote:
NSLog ([NSHomeDirectory() stringByAppendingPathComponent:
@"Library/Application Support"]);
And I get the following error:
2004-02-01 15:19:29.731 App[12321] *** _NSAutoreleaseNoPool(): Object
0x30d070 of class NSCFString autoreleased with no pool in place - just
leaking
try this...
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSLog ([NSHomeDirectory() stringByAppendingPathComponent:
@"Library/Application Support"]);
[pool release];
-lance
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.