• 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
Re: CIImage (TIFFRepresentation) memory leak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CIImage (TIFFRepresentation) memory leak


  • Subject: Re: CIImage (TIFFRepresentation) memory leak
  • From: Gorazd Krosl <email@hidden>
  • Date: Mon, 10 Mar 2008 17:02:20 -0400 (EDT)

"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/

_______________________________________________

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

  • Prev by Date: Re: CIImage (TIFFRepresentation) memory leak
  • Next by Date: Re: MPTask equivalent?
  • Previous by thread: Re: CIImage (TIFFRepresentation) memory leak
  • Next by thread: on launched with cocoa
  • Index(es):
    • Date
    • Thread