Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reference Counting in CIImage




On Jun 22, 2005, at 10:18 AM, John Harper wrote:

On Jun 22, 2005, at 7:32 AM, Nick Nallick wrote:

I've been cleaning up some experimental CoreImage code and I've found that I crash when releasing a CGLayerRef used to create a CIImage. Further experimentation seems to indicate that CIImage imageWithCGImage: retains the provided image but CIImage imageWithCGLayer: doesn't retain the provided layer. Can anyone confirm or refute this?


That's correct (for now, the behavior may change later). However, I don't see why this would cause a crash - the CIImage doesn't reference the CGLayer after -imageWithCGLayer returns

Apparently the crash is caused when the layer is released an extra time, however it doesn't look like CoreImage is the culprit. I get the same crash if I release the layer without calling CI at all. I'll post that in a new thread.


Nick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden
References: 
 >Reference Counting in CIImage (From: Nick Nallick <email@hidden>)
 >Re: Reference Counting in CIImage (From: John Harper <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.