Re: [NSFileManager defaultManager] mem leak
Re: [NSFileManager defaultManager] mem leak
- Subject: Re: [NSFileManager defaultManager] mem leak
- From: "M. Uli Kusterer" <email@hidden>
- Date: Wed, 6 Apr 2005 16:52:10 +0200
At 8:55 Uhr -0400 06.04.2005, mail4 wrote:
Question: if [NSFileManager defaultManager] does not autorelease
could this be causing the problem?
If I understand you correctly, the answer is "no". NSFileManager is
a singleton, and thus *by definition* will not be released. It may be
lazily created the first time you use it and not claim its memory
until then, but it obviously won't be released until you quit.
If you have such a one-time-leak, that is okay, because it's
intended. OTOH if you get this leak each time you use NSFileManager,
then that sounds like a bug (unless it isn't just the autorelease
pool gaining some items ... those will go away as soon as the current
autorelease pool is released.
Fluctuations in free memory are completely normal.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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