Project: Eclipse_Platform_UI
Bug 177448 New Presentation leaks colors
Reported: 2007-03-14 18:09:41 | Status: verified fixed

Build: I20070313 1) Capture Sleak snapshot 2) Maximize an editor, and restore (Ctrl+M twice) 3) Capture Sleak diff -> A color is leaked each time you maximize. TrimFrame creates a color and never disposes it. java.lang.Error at java.lang.Throwable.<init>(Throwable.java:58) at org.eclipse.swt.graphics.Device.new_Object(Device.java:786) at org.eclipse.swt.graphics.Color.<init>(Color.java:110) at org.eclipse.ui.internal.TrimFrame$1.paintControl(TrimFrame.java:93) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:204) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947) at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1233) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3554) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4355) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2225) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3282)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/TrimFrame.java