Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11432] iOS: Memory Leaks in new eventing system

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-10-12T18:38:49.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.0, Release 3.1.0, 2012 Sprint 21 API, 2012 Sprint 21
ComponentsiOS
Labelsapi, module_memory, qe-review, qe-testadded
ReporterVishal Duggal
AssigneeVishal Duggal
Created2012-10-12T18:11:57.000+0000
Updated2014-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);
         
});

Comments

  1. Vishal Duggal 2012-10-12

    master PR https://github.com/appcelerator/titanium_mobile/pull/3188 3_0_X PR https://github.com/appcelerator/titanium_mobile/pull/3189
  2. Tamila Smolich 2012-12-06

    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)

JSON Source