由于CoreAnimation和CG图像而导致的脏内存 [英] Dirty Memory because of CoreAnimation and CG image
问题描述
我的应用程序中的脏内存大小有问题,想清除脏内存.
I have a Problem in my App with the Dirty Memory Size and want to clear out the dirty memory.
我的应用程序越来越大.但是主要问题是CoreAnimation
和CG Image
类型. Memory Tag 70
正在通过我的异步图像加载"视图清除.
My App is growing bigger and bigger. But the main Problem is the CoreAnimation
and the CG Image
type. Memory Tag 70
is beeing cleared thru my Assync Image Load View.
如何从脏内存中清除CoreAnimation和CG图像?居民的57%脏记忆对我来说似乎有点高.
How can i clear CoreAnimation and CG Image from the dirty memory? 57% dirty memory of the resident seems a bit high for me.
推荐答案
也许您尚未发布它们,请使用CGImageRelease(cgImage)
,CGPathRelease(path);
等.
Maybe you had not released them, use CGImageRelease(cgImage)
, CGPathRelease(path);
, etc. Like:
CGImageRef cgImage = CGImageCreateWithImageInRect(fullImage.CGImage, CGRectMake(...));
UIImage * image = [UIImage imageWithCGImage:cgImage];
CGImageRelease(cgImage);
以及核心动画的路径
CGMutablePathRef path = CGPathCreateMutable();
...
CGPathRelease(path);
以此类推.
这篇关于由于CoreAnimation和CG图像而导致的脏内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!