Affects Version/s: Release 1.8.1
Product: Titanium Mobile
Titanium SDK: 1.8.1, 1.9.0 CI
Host OS: Mac OS X Lion
Platform OS: iOS
Platform OS Version: 5.0
Memory is not being released when a webview, with a local HTML file, is added to a window and then removed from it. But this does not happen when a remote URL is used. Below is the sample code and the local HTML file has been attached.
STEPS TO REPRODUCE
- Drop the above sample code into app.js and copy the attached 'local_webview.html' to Resources folder.
- Start the application and open Instruments to profile it.
- Click the 'Add' button and then the 'Remove' button.
- Search for 'proxy' in instruments and it can be seen that webview proxies are not released even if memory warnings are simulated.
Proxies related to webview should be released.
Memory is not being freed.
Memory is being freed when a remote URL (uncomment the line with google.com and comment out the line with local_webview.html) is used.