开发者

Does the Facebook API for iOS leak?

When testing a demo app in Instruments using the leaks tool, I get GeneralBlock-XXXX that can be 56 or 2048. This h开发者_如何学编程appens after selecting the Publish button. (which actually calls [Facebook dialog:@"feed"];)

Can anyone confirm this? Does this have anything to do with UIWebView?

BTW, it is reproduced only on device (I used iPhone4) and not in Simulator. There are more reports on this like: https://github.com/facebook/facebook-ios-sdk/issues/309

Thanks!


This looks like its an issue with UIWebView, and is fairly well known from different situations. I can't possibly summarize all the suggested answers, so I think you should look at the following two SO questions which address people having this issue:

generalblock-56-memory-leak-when-calling-loadrequest-in-uiwebview

general-block-56-1024-8-244-24-memory-leaks-using-uiwebview-loadrequest

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜