Re: Problem using filewrappers under snow leopard
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