[Openmcl-devel] Fix memory leak in an objc example

Leo Liu sdl.web at gmail.com
Sun May 4 01:38:53 PDT 2014


On 2014-05-03 15:09 +0800, Leo Liu wrote:
>              (status (#_LSGetApplicationForURL

My bad I didn't read the documentation carefully enough. As pointed out
by pjb in #ccl:

  https://developer.apple.com/library/mac/documentation/Carbon/reference/LaunchServicesReference/Reference/reference.html#//apple_ref/doc/uid/TP30000998-CH1g-F16946
  says about the outAppURL: "Despite the absence of the word Copy in its
  name, this function retains the URL reference object on your behalf; you
  are responsible for releasing this object."

Leo




More information about the Openmcl-devel mailing list