Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4374] window.open leads to memory leak on app startup

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-07-10T21:49:38.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelscore, reported-1.7.0
ReporterBen S.
AssigneeIngo Muschenetz
Created2011-06-06T00:38:40.000+0000
Updated2017-07-10T21:49:38.000+0000

Description

When creating a simple app which opens a window on startup, I get a memory leak when running the app in Xcode with "Leaks" performance tool. Doesn't matter what's contained inside the window, I always get an initial memory leak. I attached a screenshot. This doesn't happen with 1.6.3. When running the same code with 1.6.3, I get no leak in "Leaks" tool. app.js:
 
Titanium.UI.setBackgroundColor('black');

var win = Titanium.UI.createWindow();
var webview = Titanium.UI.createWebView({
	html:"This is some text inside a webview...it's not very long, but demonstrates what it should",
	height:150,
	width:300,
	autoDetect:[],
	scalesPageToFit:false,
	backgroundColor:"white",
	left:10,
	top:100,
	color:"black"
});
win.add(webview);

win.open();

Attachments

FileDateSize
Screen shot 2011-06-06 at 9.22.16 AM.png2011-06-06T00:38:40.000+0000323075

Comments

  1. Lee Morris 2017-07-10

    Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.

JSON Source