Should i release return object from CGImageSourceCopyPropertiesAtIndex call?

Posted by dualsoul on Stack Overflow See other posts from Stack Overflow or by dualsoul
Published on 2010-05-26T17:13:35Z Indexed on 2010/05/26 17:21 UTC
Read the original article Hit count: 276

Filed under:

It's not stated in documentation for CGImageSourceCopyPropertiesAtIndex function. But am i right that i should call CFRelease on retured CFDictionaryRef ?

Quick sample:

NSDictionary* metadata = (NSDictionary   *)CGImageSourceCopyPropertiesAtIndex(source,0,NULL);
......................
//Should i call CFRelease(metadata); ??

Thanks.

© Stack Overflow or respective owner

Related posts about objective-c