• 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
Re: Problem using filewrappers under snow leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem using filewrappers under snow leopard


  • Subject: Re: Problem using filewrappers under snow leopard
  • From: Ken Thomases <email@hidden>
  • Date: Wed, 7 Oct 2009 11:47:36 -0500

This isn't related to the bug you're asking about, but it's gone by twice, so I need to comment on it:

On Oct 7, 2009, at 11:33 AM, Eagle Offshore wrote:

return [[NSFileWrapper alloc] initDirectoryWithFileWrappers:fileWrappers];

This is a leak. The caller is not expecting to receive ownership responsibilities for the returned object, and so won't release it. The current method is not arranging for it to be released, either. So, nothing is and it leaks. Autoreleasing the object would fix the leak.


Cheers (and good luck fixing your other bug),
Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Problem using filewrappers under snow leopard (From: Eagle Offshore <email@hidden>)
 >Re: Problem using filewrappers under snow leopard (From: Graham Cox <email@hidden>)
 >Re: Problem using filewrappers under snow leopard (From: Eagle Offshore <email@hidden>)

  • Prev by Date: Re: Strange Core Data problem after upgrade
  • Next by Date: Re: Constructive Criticism
  • Previous by thread: Re: Problem using filewrappers under snow leopard
  • Next by thread: Re: Problem using filewrappers under snow leopard
  • Index(es):
    • Date
    • Thread