Opened 13 years ago

Closed 13 years ago

#1620 closed defect (wontfix)

memory leaks

Reported by: dylan Owned by: alex
Priority: high Milestone: 0.9
Component: Events Version: 0.3
Keywords: Cc:
Blocked By: Blocking:

Description

Some memory leaks that I see on page unload according to the firefox 1.5 memory leak tool... in a complex app, lots of widgets:

Leaks in window 0x2339200: [+] [leaked object] (279c6e8, http://localhost/scripts/dojo/src/widget/DomWidget.js, 206-208) = function (evt) {

if (_this[ntf]) {

_this[ntf](dojo.event.browser.fixEvent(evt, this));

}

}

[ ] prototype (20b4ee0) = [object Object]

[+] [leaked object] (25834c0, http://localhost/scripts/dojo/src/widget/DomWidget.js, 232-234) = function (evt) {

if (_this[ntf]) {

_this[ntf](dojo.event.browser.fixEvent(evt, this));

}

}

[ ] prototype (20b4f28) = [object Object]

[+] [leaked object] (189f3e78, http://localhost/scripts/dojo/src/event/browser.js, 127-133) = function (evt) {

if (!evt) {

evt = window.event;

} var ret = fp(dojo.event.browser.fixEvent(evt, this)); if (capture) {

dojo.event.browser.stopEvent(evt);

} return ret;

}

[ ] prototype (209a380) = [object Object]

[+] [leaked object] (23fc6e8, http://localhost/scripts/dojo/src/hostenv_browser.js, 287-310) = function dj_load_init(e) {

var type = (e && e.type) ? e.type.toLowerCase() : "load";

if (arguments.callee.initialized

(type != "domcontentloaded" && type != "load")) { return;

} arguments.callee.initialized = true; if (typeof (_timer) != "undefined") {

clearInterval(_timer); delete _timer;

} var initFunc = (function () {if (dojo.render.html.ie) {dojo.hostenv.makeWidgets();}}); if (dojo.hostenv.inFlightCount == 0) {

initFunc(); dojo.hostenv.modulesLoaded();

} else {

dojo.addOnLoad(initFunc);

}

}

[ ] initialized = true [ ] prototype (209e5d8) = [object Object]

[+] [leaked object] (189f4098, http://localhost/scripts/dojo/src/event/browser.js, 127-133) = function (evt) {

if (!evt) {

evt = window.event;

} var ret = fp(dojo.event.browser.fixEvent(evt, this)); if (capture) {

dojo.event.browser.stopEvent(evt);

} return ret;

}

[ ] prototype (209eab0) = [object Object]

Change History (5)

comment:2 Changed 13 years ago by dylan

FWIW, these leaks do not happen in firefox 2 rc2, so I'm not sure if it is worth fixing.

comment:3 Changed 13 years ago by James Burke

Dylan, did you mean to assign this bug to me? I'm not that familiar with most of the code mentioned, with the exception of hostenv_browser.js.

comment:4 Changed 13 years ago by dylan

Milestone: 0.40.5
Owner: changed from James Burke to alex

comment:5 Changed 13 years ago by dylan

Resolution: wontfix
Status: newclosed

Because these leaks have been fixed by Firefox in 2.0, going to close as wontfix

Note: See TracTickets for help on using tickets.