https://issues.apache.org/bugzilla/show_bug.cgi?id=53232

          Priority: P2
            Bug ID: 53232
          Assignee: [email protected]
           Summary: Memory Leak after using event listeners via script
          Severity: normal
    Classification: Unclassified
          Reporter: [email protected]
          Hardware: PC
            Status: NEW
           Version: 1.7
         Component: Scripting
           Product: Batik

Created attachment 28778
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28778&action=edit
Example Java App and SVG to demonstrate the memory leak

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to