does result of LSSharedFileListInsertItemURL() need to be released on return if GC is enabled ?
does result of LSSharedFileListInsertItemURL() need to be released on return if GC is enabled ?
- Subject: does result of LSSharedFileListInsertItemURL() need to be released on return if GC is enabled ?
- From: Dave Carpeneto <email@hidden>
- Date: Fri, 05 Feb 2010 13:34:24 -0500
Hi all - the LaunchServices/LSSharedFileList.h file states:
/*
* LSSharedFileListInsertItemURL()
...
* Result:
* Reference to new item. Has to be released with CFRelease when the
* item is not needed anymore.
*
... do I need to follow this advice if I enable garbage collection ? I
would have thought that this was not needed, but the 'has to be' wording
above kinda worries me.
Alternate question: if I CFRelease() the result & GC is enabled is there
any fallout that will occur, or will everything work fine ?
Thanks all - Dave
_______________________________________________
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