[TIMOB-14490] iOS: iPad popover view memory leak when opening/closing popover
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-07-23T05:08:04.000+0000 |
Affected Version/s | Release 2.1.4, Release 3.0.2, Release 3.1.0, Release 3.1.1 |
Fix Version/s | 2013 Sprint 15 API, 2013 Sprint 15, Release 3.2.0 |
Components | iOS |
Labels | ios, ipad, mobile, mobilesdk, qe-closed-3.2.3, titanium |
Reporter | Ashish Nigam |
Assignee | Ingo Muschenetz |
Created | 2013-07-04T11:05:46.000+0000 |
Updated | 2014-04-21T10:27:57.000+0000 |
Description
Application live memory is getting increased whenever we open the popover view in iPad.
Test Case:
1: Use the below mentioned code.
2: Put it on app.js file of any new project.
3: Run the application and use instrument to analyze the application for leaks.
4: Keep on doing open and hide of pop over view and check the live bites.
5: live bites go on increasing.
*Sample code*
var window = Ti.UI.createWindow();
var openButton = Titanium.UI.createButton({title:'Open'});
window.add(openButton);
openButton.addEventListener('click', function (e) {
var closeButton = Titanium.UI.createButton({title:'Cancel'});
var popover = Ti.UI.iPad.createPopover({ height:300, width:300,
title:'Add a Walk In', leftNavButton:closeButton});
var tabbedBar = Titanium.UI.iOS.createTabbedBar({
labels:['One', 'Two', 'Three'],
backgroundColor:'#336699',
top:50,
style:Titanium.UI.iPhone.SystemButtonStyle.BAR,
height:25,
width:200
});
popover.add(tabbedBar);
popover.show({
view:openButton, animated:true
});
closeButton.addEventListener('click', function (e) {
tabbedBar.hide();
popover.remove(tabbedBar);
tabbedBar = null;
popover.hide();
popover = null;
});
});
window.open();
Same symptoms. Same UI Control
Verified as FIXED using : OSX: 10.9.2 Xcode:5.1.1 acs@1.0.14 alloy@1.3.1 npm@1.3.2 titanium@3.2.3-beta2 titanium-code-processor@1.1.1-beta1 MobileSDK :3.2.3.v20140418101718 ,3.3.0.v20140418162516 Appcelerator Studio, build: 3.2.3.201404162038 Devices Used : iPhone 5s (7.1) ; iPod touch (7.1) No memory leak has been noticed when opening/closing popover on iPad. Also as its a duplicate ticket , the main ticket TIMOB-11378 is also fixed and closed. Hence closing this ticket as FIXED.