diff options
author | Lars Vogel | 2020-08-14 07:29:07 +0000 |
---|---|---|
committer | Lars Vogel | 2020-08-14 08:54:54 +0000 |
commit | a42e981cab9c457595e4ac098ab9508d5df25e55 (patch) | |
tree | dd947048de2229bb278231e48c92d9f9ba876cda | |
parent | 07b18ab8c1a59aa7fddc2a1adacf964ab9df3df0 (diff) | |
download | eclipse.platform.swt-a42e981cab9c457595e4ac098ab9508d5df25e55.tar.gz eclipse.platform.swt-a42e981cab9c457595e4ac098ab9508d5df25e55.tar.xz eclipse.platform.swt-a42e981cab9c457595e4ac098ab9508d5df25e55.zip |
Bug 565208: Remove calls to Color.dispose
As these calls are no longer needed, remove the calls
and related code around such dispose that is also
now redundant.
Tests
Change-Id: I243fd4db6021e271209cf85a5cf64e21aec64ce4
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2 files changed, 0 insertions, 3 deletions
diff --git a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug558222_BlackIcon.java b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug558222_BlackIcon.java index eb6a672eab..2c9db6148b 100644 --- a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug558222_BlackIcon.java +++ b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug558222_BlackIcon.java @@ -69,8 +69,6 @@ public class Bug558222_BlackIcon { gc.drawPolygon(shape); gc.dispose(); - backgroundHot.dispose(); - ToolBar bar = new ToolBar (shell, SWT.BORDER | SWT.FLAT); Rectangle clientArea = shell.getClientArea (); bar.setBounds (clientArea.x, clientArea.y, 200, 32); diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java index ee066d93e5..593aa9da95 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java @@ -1035,7 +1035,6 @@ void getImageData2(int depth, PaletteData palette) { assertTrue("rgb.equals(colorRGB)", rgb.equals(colorRGB)); } } - color.dispose(); gc.dispose(); image.dispose(); } |