如何解决分配问题?

如何解决分配问题?

问题描述:

我在乐器工具中看到了这个问题,但不知道问题出在哪里。没有泄漏报告

I see this problem in instruments tool but dont know where is the problem. There are no leaks reports

当我按照链接时发现一些问题(图2& 3& 4)这些是泄漏还是什么?我想我在代码中到处都是同样的错误。但是不知道是什么

when I followed the links I found some problems (image 2&3&4) is these a leak or what? I think I am doing the same mistakes everywhere in the code..but dont know what

我可以通过查看你的代码看到一些漏洞:

I can see a couple of leaks from looking at your code:


  • activityIndi​​cator,你永远不会释放它。

  • self.conn = [NSURLConnection alloc] ...它会导致泄漏,取出conn背后的自我。 (假设你的二传手正在保留)

  • UILabel,你永远不会释放它。

试试这个并告诉我。