Details
-
Bug
-
Status: Resolved
-
Resolution: Cannot Reproduce
-
1.7
-
None
-
None
-
Operating System: All
Platform: PC
Description
I have an application uses dynamic SVG craphics controlled via script from within the DOM.
I've noticed a significant memory leak in JSVGCanvas which occurs whenever I have used event listeners on elements in the DOM.
I remove all listeners before disposing the canvas but this has no affect.
I have attached a simple example to demonstrate the issue.
To perform the test, run the app, click the "No Events" button three times and close each window that appears. Use JVisualVM (or something similar) to check instances of JSVGCanvas.
Repeat the test by pressing the "With Events" button three times and closing each window. Notice that JSVGCanvas doesn't dispose correctly after events were used.