• 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
does result of LSSharedFileListInsertItemURL() need to be released on return if GC is enabled ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: does result of LSSharedFileListInsertItemURL() need to be released on return if GC is enabled ?
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Versioning / increasing build number
  • Next by Date: Re: Versioning / increasing build number
  • Previous by thread: Re: Debugging (apparently) random retain loop bug (NSArrayController)
  • Next by thread: Re: does result of LSSharedFileListInsertItemURL() need to be released on return if GC is enabled ?
  • Index(es):
    • Date
    • Thread