Skip navigation.
 
ml[NSFileManager defaultManager] mem leak
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?

Related mailsAuthorDate
ml[NSFileManager defaultManager] mem leak mail4 Apr 6, 14:55
mlRe: [NSFileManager defaultManager] mem leak M. Uli Kusterer Apr 6, 16:52
mlRe: [NSFileManager defaultManager] mem leak j o a r Apr 6, 17:05