首页 > 其他 > 详细

Potential leak of an object stored into ‘colorS'

时间:2015-03-24 23:16:37      阅读:573      评论:0      收藏:0      [点我收藏+]

技术分享


Potential leak of an object stored into ‘colorS‘
Call to function ‘CGColorSpaceCreateDeviceRGB‘ returns a Core Foundation object with a +1 retain count
object allocated and stored into ‘colorS‘ is not referenced later in this execution path and has a retain count of +1


    CGColorSpaceRelease(colorS);
    CGColorRelease(colo);

Objective-C类型的对象才支持arc,其他类型的对象,创建了就需要释放。
---------------------------------------------------------------------------------


技术分享


Reference-counted object is used after it is released    对象在被释放之后使用了



Potential leak of an object stored into ‘colorS'

原文:http://blog.csdn.net/u010241322/article/details/44595795

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!