Dirty memory due to CoreAnimation and CG image
I have a dirty memory size problem in my application and want to clean up dirty memory.
My app is growing more and more. But the main problem is the type CoreAnimation
and CG Image
. Memory Tag 70
cleared through my load view Assync Image.
How can I clear CoreAnimation and CG Image from dirty memory? 57% of the dirty memory of a resident seems a little higher to me.
+1
source to share
1 answer
Perhaps you have not released their use CGImageRelease(cgImage)
, CGPathRelease(path);
etc. How:
CGImageRef cgImage = CGImageCreateWithImageInRect(fullImage.CGImage, CGRectMake(...));
UIImage * image = [UIImage imageWithCGImage:cgImage];
CGImageRelease(cgImage);
and for the main animation path
CGMutablePathRef path = CGPathCreateMutable();
...
CGPathRelease(path);
etc.
+2
source to share