开发者

Memory Leak in Foundation's Library NSCFString

开发者 https://www.devze.com 2023-02-16 20:30 出处:网络
I\'m working on a project that requires extreme care with memory. I ran the simulation on instruments and it shows the next leak:

I'm working on a project that requires extreme care with memory. I ran the simulation on instruments and it shows the next leak:

Leaked Object: NSCFString

Size: 80 Bytes

Responsible Library: Foundatio开发者_JAVA技巧n

Responsible Frame: NSPlaceHolderString

I've searched all over my code and I'm not explicitly creating a NSCFString.

Thanks in advance.


NSCFString is the internal subclass that's used for most NSStrings. You're leaking an NSString. It might not even be something you created — you might be retaining a string and not releasing it later.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号