[TIMOB-11432] iOS: Memory Leaks in new eventing system
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-10-12T18:38:49.000+0000 |
| Affected Version/s | Release 3.0.0 |
| Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 21 API, 2012 Sprint 21 |
| Components | iOS |
| Labels | api, module_memory, qe-review, qe-testadded |
| Reporter | Vishal Duggal |
| Assignee | Vishal Duggal |
| Created | 2012-10-12T18:11:57.000+0000 |
| Updated | 2014-06-19T12:43:47.000+0000 |
Description
Drop Code in app.js. Run with Allocations instruments. Open and close window. See buttonProxy leak.
var basewin = Ti.UI.createWindow();
basewin.open();
var openwin1 = Ti.UI.createButton({
title:"Case 1",
});
basewin.add(openwin1);
openwin1.addEventListener('click', function(e) {
var win2 = Titanium.UI.createWindow({
backgroundColor:'#fff'
});
var label2 = Titanium.UI.createLabel({
color:'#999',
text:'I am Window 2',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
win2.add(label2);
win2.open();
var close = Ti.UI.createButton({
title:"Close",
bottom:'20dp',
height:'35dp',
width:'180dp'
});
close.addEventListener('click', function(e) {
win2.close();
});
win2.add(close);
});
master PR https://github.com/appcelerator/titanium_mobile/pull/3188 3_0_X PR https://github.com/appcelerator/titanium_mobile/pull/3189
Closing as fixed. Tested on: Titanium Studio, build: 3.0.0.201211301903 Titanium SDK, builds: 3.0.0.v20121206113203; 3.1.0.v20121206112601 Devices: iPhone 4 (5.1.1)