[NSFileManager defaultManager] mem leak
[NSFileManager defaultManager] mem leak
- Subject: [NSFileManager defaultManager] mem leak
- From: mail4 <email@hidden>
- Date: Wed, 6 Apr 2005 08:55:30 -0400
I have read (in archives) that [NSFileManager defaultManager] does not autorelease
And, this is part of my code that causes a 24 byte leak...
My Code...
<x-tad-bigger>NSFileManager *fileManager = [NSFileManager defaultManager];
NSArray *dirArray = [fileManager directoryContentsAtPath:dir];
Malloc Debug says the leak comes from the "</x-tad-bigger><x-tad-bigger>directoryContentsAtPath"
line of code(24 bytes)
Yet, I cannot figure out why.
I have tried various autorelease situations, nothing helps
Question: if </x-tad-bigger>[NSFileManager defaultManager] does not autorelease could this be causing the problem?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden