Re: ImageKit + GC = nogo? (or better... how :D)
Re: ImageKit + GC = nogo? (or better... how :D)
- Subject: Re: ImageKit + GC = nogo? (or better... how :D)
- From: Thomas Goossens <email@hidden>
- Date: Mon, 3 Dec 2007 14:21:21 +0100
The following representations will leak with GC turned on because they
are using ImageIO to create thumbnails at some point:
extern NSString * const IKImageBrowserPathRepresentationType; /*
NSString */
extern NSString * const IKImageBrowserNSURLRepresentationType; /*
NSURL */
extern NSString * const
IKImageBrowserCGImageSourceRepresentationType; /* CGImageSourceRef */
extern NSString * const IKImageBrowserNSDataRepresentationType; /*
NSData */
extern NSString * const
IKImageBrowserQuickLookPathRepresentationType; /* NSString or NSURL*/
I don't know about the other representations.
-- Thomas.
On Dec 3, 2007, at 2:06 PM, Dominik Pich wrote:
No good when using imagekit :/
I tried different representations.... all leak there...
Am Dec 2, 2007 um 10:48 PM schrieb Thomas Goossens:
Do you see the same memory leak if you use
CGImageSourceCreateWithData() instead of
CGImageSourceCreateWithURL()?
I have an application which used CGImageSourceCreateWithURL() and it
always kept the file open even after I had realeased everything.
Once
I switched to loading the file into an NSData object and then
creating
the CGImageSourceRef every cleaned up nicely.
There is no leak if I use CGImageSourceCreateWithData() instead of
CGImageSourceCreateWithURL().
-- Thomas.
_______________________________________________
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
_______________________________________________
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