If your iPhone app uses a UIWebView, and loads many pages with large images, you may find that you are leaking memory. Can this be resolved?
Try adding
[webView loadHTMLString: @"" baseURL: nil];
right before you release the webview. For a leak in 4.2.1 relating to displaying a PDF in a UIWebView this solves most of the leak problems for me.
It is a known problem.
Marco Arment mentions the leak here. http://blog.instapaper.com/post/60628543
There isn't a lot you can do. One option in to "intercept" the html try to truncate parts that you don't need. Obviously, this won't likely work for a general purpose webview.
In the meantime, you may just have to wait for an update from Apple.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With