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
精彩评论