Instrument (XCode4) report ASIHttpRequest leak memory?

耗尽温柔 提交于 2019-12-04 19:56:11

I'm not sure if this is the problem you're having or not, but to quote http://allseeing-i.com/ASIHTTPRequest/How-to-use#using_blocks :

  __block ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];

Note the use of the __block qualifier when we declare the request, this is important! It tells the block not to retain the request, which is important in preventing a retain-cycle, since the request will always retain the block.

So try adding the __block qualifier, and retest and see if you still have the problem...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!