FROM : mail4
DATE : Wed Apr 06 14:55:30 2005
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...
NSFileManager *fileManager = [NSFileManager defaultManager];
NSArray *dirArray = [fileManager directoryContentsAtPath:dir];
Malloc Debug says the leak comes from the "directoryContentsAtPath"
line of code(24 bytes)
Yet, I cannot figure out why.
I have tried various autorelease situations, nothing helps
Question: if [NSFileManager defaultManager] does not autorelease could
this be causing the problem?
DATE : Wed Apr 06 14:55:30 2005
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...
NSFileManager *fileManager = [NSFileManager defaultManager];
NSArray *dirArray = [fileManager directoryContentsAtPath:dir];
Malloc Debug says the leak comes from the "directoryContentsAtPath"
line of code(24 bytes)
Yet, I cannot figure out why.
I have tried various autorelease situations, nothing helps
Question: if [NSFileManager defaultManager] does not autorelease could
this be causing the problem?
| Related mails | Author | Date |
|---|---|---|
| mail4 | Apr 6, 14:55 | |
| M. Uli Kusterer | Apr 6, 16:52 | |
| j o a r | Apr 6, 17:05 |






Cocoa mail archive

