[TIMOB-4374] window.open leads to memory leak on app startup
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2017-07-10T21:49:38.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | core, reported-1.7.0 |
| Reporter | Ben S. |
| Assignee | Ingo Muschenetz |
| Created | 2011-06-06T00:38:40.000+0000 |
| Updated | 2017-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
| File | Date | Size |
|---|---|---|
| Screen shot 2011-06-06 at 9.22.16 AM.png | 2011-06-06T00:38:40.000+0000 | 323075 |
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.