Re: CoreImage: Newbie can't find memory leak [SOLVED]
Re: CoreImage: Newbie can't find memory leak [SOLVED]
- Subject: Re: CoreImage: Newbie can't find memory leak [SOLVED]
- From: Chris Lewis <email@hidden>
- Date: Wed, 15 Feb 2006 00:55:01 +0000
Hi again,
This is SOLVED!
It was my core filters that were doing it. For anyone looking this up:
By doing a setValue:, this generates a retain (I didn't know this). I
needed to give anything I plugged in a release, to balance out. For
example:
+ (CIImage *)compositeImage : (CIImage *)aImage
overlayingImage : (CIImage *)overlayImage
{
CIFilter *f = [CIFilter filterWithName:@"CIMaximumCompositing"];
[f setValue:aImage forKey:@"inputBackgroundImage"];
[f setValue:overlayImage forKey:@"inputImage"];
CIImage *returnImage = [f valueForKey:@"outputImage"];
[overlayImage release];
[aImage release];
return returnImage;
}
OmniObjectMeter saved my life. Well worth 50 bucks educational.
Thanks once again guys,
Chris Lewis
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden