[Greasemonkey] memory leak when using DOMNodeInserted
Johnathan Conley
jconley at users.sourceforge.net
Thu Jun 29 22:10:55 EDT 2006
On 6/29/06, Jeremy Dunck wrote:
>
>Hmm. I created a test case (attached), and it sure seems to be called
>for each tab.
>
>What'm I missing?
>
Bad assumption on my part... I just tested and "unload" is called, however
even though it calls removeEventListener, the leak still occurs on window
close only. (closing tabs individually cleans up fine)
I'm only looking at the mailing list via the web, so I can't see your
attached test case, but based on Vectorspace's... I added alert('unload') to
my unload function, and the memory *does* return to normal, but without it,
the leak is present.
I'm guessing the alert gives it time to clean up... draw what conclusions
you will from that.
fyi: I'm still using my original test case of opening 25 med-large web
pages, so the leak is easily visible in the task manager.
More information about the Greasemonkey
mailing list