[TIMOB-12129] Android: ImageView memory leak
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-12-20T22:15:47.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.1.0, 2012 Sprint 26 API, 2012 Sprint 26 |
Components | Android |
Labels | api, qe-port |
Reporter | Hieu Pham |
Assignee | Hieu Pham |
Created | 2012-12-19T00:52:56.000+0000 |
Updated | 2014-06-19T12:43:39.000+0000 |
Description
ImageView is leaking memory. Steps to reproduce:
var detailWindow = Titanium.UI.createWindow({ backgroundColor : '#fff' });
var imageView = Ti.UI.createImageView({ image : "https://s3.amazonaws.com/static.tumblr.com/6t3upxl/Aawm08w0l/khout-kitten-458882.jpeg", top : '10dp' });
detailWindow.add(imageView);
detailWindow.open();
1. Run code
2. Click back button.
3. On device, click on launcher to re-launch app
4. Repeat steps 2-3 a few times (~3-4 times on Samsung Galaxy Tab 10.1), and observe log for OutOfMemory error.
PR: https://github.com/appcelerator/titanium_mobile/pull/3622
No memory leaks. Verified on: Studio: 3.0.1.201212181159 SDK: 3.1.0.v20130114171802 Android Device: Samsung Galaxy Note (v2.3.6)