Commit a0ec7ac8 authored by Simon Barner's avatar Simon Barner
Browse files

- Fix some SWT resource leaks (leaked unused image Image, leaked path)

refs 2709
parent f83c516f
......@@ -37,7 +37,7 @@ import org.eclipse.swt.graphics.Path;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 2C17D9067E1944AE6A949D236DA6F8A2
* @ConQAT.Rating YELLOW Hash: 89A2AEBE906B452250B950FC1C89E1AA
*/
public class PrettyInsetEllipse extends Shape {
......@@ -70,6 +70,7 @@ public class PrettyInsetEllipse extends Shape {
gfx.setClip(path);
gfx.fillGradient(croppedBounds, true);
gfx.popState();
path.dispose();
}
/** Returns a copy of the bounds cropped by the insets. */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment