diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java index 1f4fbb1a9b..224fb40ebb 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java @@ -4859,7 +4859,6 @@ private class SetBackgroundOperation extends ReplaceableOperation { SetBackgroundOperation(Color color) { RGB rgb = color.getRGB(); this.color = new Color(rgb); - registerForDisposal(this.color); } @Override @@ -5208,7 +5207,6 @@ private class SetForegroundOperation extends ReplaceableOperation { SetForegroundOperation(Color color) { RGB rgb = color.getRGB(); this.color = new Color(rgb); - registerForDisposal(this.color); } @Override