Potential leak of an object stored into ‘colorS'

编程知识 更新时间:2023-05-01 23:40:33


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
http://www.cocoachina/ios/20150206/11121.html

    CGColorSpaceRelease(colorS);     CGColorRelease(colo);
Objective-C类型的对象才支持arc,其他类型的对象,创建了就需要释放。
---------------------------------------------------------------------------------




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



更多推荐

Potential leak of an object stored into ‘colorS'

本文发布于:2023-04-24 14:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/9681464142699fe6ddf3d0537972b1ab.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:leak   Potential   object   colorS   stored

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 100739文章数
  • 26065阅读数
  • 0评论数