• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[NSFileManager defaultManager] mem leak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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

  • Follow-Ups:
    • Re: [NSFileManager defaultManager] mem leak
      • From: "M. Uli Kusterer" <email@hidden>
  • Prev by Date: Re: WWDC 2005 - Is the value worth the price? (OT)
  • Next by Date: Re: Re: Odd problem using NSCoding
  • Previous by thread: Re: NSCalendarDate, NSTimer - Daylight Saving Time (DST) problem is tricky...
  • Next by thread: Re: [NSFileManager defaultManager] mem leak
  • Index(es):
    • Date
    • Thread