开发者

iPhone/iPad App Memory Leaks

I was testing for memory leaks by running the Leaks tool to analyze on the device. I saw a bunch of leaks like:

GeneralBlock-128 (or some other number), Responsible Library is Foundation, Responsible Frame is NSPlaceh开发者_StackOverflowolderMutableString.

What do these mean and how to fix them?? I have A LOT of these!! Please help. Thanks.


NSPlaceholderMutableString is the class used in allocating new instances of NSMutableString. Check where you're creating these objects (charge the Foundation libraries to its callers in the data mining inspector) and you'll find where to audit your code. Beware that the Leaks tool is not 100% successful so there is some chance that you're seeing a false +ve, but it's still definitely worth checking out.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜