Community
Participate
Working Groups
Created attachment 173922 [details] patch To reproduce: Get SWT Sleak and install it Open SWT Tools -> Sleak view 1. Open a diagram with lots of SVG images 2. Close the diagram 3. Take a Snap in the Sleak view Note that there are lots of SWT Paths for parts of SVGs as well as Images for partial or entire SVGs Problems: There are a lot of leaks in Graphics2DGraphicsAdaptor for SWT Path SVGImageConverter#renderSVGtoSWTImage(...) leaks SWT Image if exception is thrown generating SWT image directly from SVG (happens often, because not all SVG features are supported by SWT, yet supported by AWT) AbstractRenderedImage doesn't dispose the old image before setting the new one. Happens if the same image is rendered on different threads - shouldn't happen though. CanonicalEditPolicy#prepareAdapterList(...) leaks editparts. When editor is closed the edititng domain remains and holds onto executed commands, hence commands should not be holding onto editparts. SetMutability commands do, because they may have an editpart in the view adapters list.
Created attachment 174052 [details] patch Corrected the patch (CanonicalEditPolicy - correctly added the view adapter for the host editpart) Lidija, Anthony, could one of you please review this fix?
All the changes look good to me.
Great - thanks! Delivered to HEAD and R1_4_maintenance