Re: Memory efficient way to get image metadata?
Re: Memory efficient way to get image metadata?
- Subject: Re: Memory efficient way to get image metadata?
- From: Dave Keck <email@hidden>
- Date: Mon, 3 Aug 2009 11:45:47 -1000
> P.S. I very rarely use the C interfaces, do I have to also run CFRelease on the result of the CGImageSourceCopyProperties call?
Yes, you should. See 'The Create Rule':
http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029.
Or, if you're using Garbage Collection, you should call
CFMakeCollectable() on it.
Or you could cast it to id and autorelease it, which I find particularly handy.
_______________________________________________
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