Skip navigation.
 
mlRe: CIImage (TIFFRepresentation) memory leak
FROM : Gorazd Krosl
DATE : Mon Mar 10 22:02:20 2008

"If all the code you're using is present, it looks to
me like you're not releasing the object pointed at by
image; the object returned by imageWithData is not an
auto-released object."

I just checked documentation
(http://developer.apple.com/documentation/GraphicsImaging/Reference/QuartzCoreFramework/Classes/CIImage_Class/Reference/Reference.html#//apple_ref/occ/clm/CIImage/imageWithData:)
and it does not mention that a convenience method
+imageWithData: would return a retained object. And
there is -initWithData: which I think implies that as
with other Cocoa and similar frameworks based on ObjC
+somethingWithSometingOther: returns an autoreleased
instance while -initWithSomethingOther: is an
initializer returning non-autoreleased instance. If
this is different for CIImage it should be mentioned
in the docs.

Gorazd



      Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/

Related mailsAuthorDate
mlCIImage (TIFFRepresentation) memory leak slasktrattenator Mar 10, 17:33
mlRe: CIImage (TIFFRepresentation) memory leak slasktrattenator Mar 10, 21:03
mlRe: CIImage (TIFFRepresentation) memory leak Gary L. Wade Mar 10, 21:21
mlRe: CIImage (TIFFRepresentation) memory leak Brady Duga Mar 10, 21:34
mlRe: CIImage (TIFFRepresentation) memory leak slasktrattenator Mar 10, 21:58
mlRe: CIImage (TIFFRepresentation) memory leak Gorazd Krosl Mar 10, 22:02
mlRe: CIImage (TIFFRepresentation) memory leak Rob Keniger Mar 11, 04:46
mlRe: CIImage (TIFFRepresentation) memory leak slasktrattenator Mar 11, 11:53