imageWithCGImage根据仪器泄漏 [英] imageWithCGImage leaks according to instrument

查看:58
本文介绍了imageWithCGImage根据仪器泄漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是乐器应用的屏幕截图.

Below is a screenshot from instrument app.

请问这行有什么问题吗?

Is there any explanation what is wrong with that line ?

推荐答案

ARC不管理C类型,可以考虑使用CGImage.完成CGImageRelease(image)后,必须手动释放ref. 找到了答案聘用者

ARC does not manage C-types, of which CGImage may be considered. You must release the ref manually when you are finished with CGImageRelease(image); found the answer hire

这篇关于imageWithCGImage根据仪器泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆