0

我在为 fb 加载朋友时出现内存泄漏,可能是什么原因?自过去 3 天以来,我正在解决此错误,但找不到任何强有力的理由.. :(

我很清楚

"ARC only deals with Cocoa objects. If you are using Core Foundation objects you still have to use memory management. There are rules for transferring ownership of objects when using toll-free bridging. ARC doesn't make memory management go away - it just makes the more common parts of it easier and more efficient. So, yes - you still need to check for leaks."

我的代码中是否有任何 Core Foundation 对象?如果是,如何管理?

签出附上的图片

在此处输入图像描述

任何帮助将不胜感激 !

4

1 回答 1

0

你有一个POTENTIALLY LEAK,这意味着你可能有它,也可能没有。Profiler 可能会给出假阳性结果。但只是为了确保使用 Instruments 检查项目并验证内存分配(泄漏)。这将确定您是否有泄漏。

于 2013-05-20T12:39:52.077 回答