You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Open the attached test-dom.html file in MSIE (tested on 7.0).
2. Move the mouse cursor over and out of the test div element.
3. Repeat 2.
This problem exists both in base2.dom and JSB. To test JSB use the attached
file test-jsb.html.
What is the expected output? What do you see instead?
Checking with memory leak detector like sIEve or just using the Task
Manager shows that IE is leaking memory.
What version of the product are you using? On what operating system?
base2: 1.1 (alpha1)
JSB: 0.9.6
Please provide any additional information below.
Performing the test without activating the event handlers (i.e. without
moving the mouse cursor over and out of the test div) does not show any
memory leaks.
The problem was found to be in the "onpropertychange" event handler that is
used to dispatch events in IE.
For base2.dom: adding "delete d.target; delete d.event; delete d.listener;"
at its end prevents the leaks.
For JSB: adding "delete d.listener;delete d.behavior;delete d.args;" at its
end prevents the leaks.
I'm not sure whether the above changes are really the correct fix, but they
definitely solved the problem for me.
Original issue reported on code.google.com by [email protected] on 13 Dec 2009 at 1:59
Original issue reported on code.google.com by
[email protected]
on 13 Dec 2009 at 1:59Attachments:
The text was updated successfully, but these errors were encountered: