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

- Fix some SWT resource leaks (Color, Image)

refs 2709
parent 3c90b738
...@@ -61,7 +61,7 @@ import org.fortiss.tooling.base.ui.annotation.view.IAnnotationViewPart; ...@@ -61,7 +61,7 @@ import org.fortiss.tooling.base.ui.annotation.view.IAnnotationViewPart;
* @author diewald * @author diewald
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating GREEN Hash: D480092E250130095120B89670E5D4DF * @ConQAT.Rating YELLOW Hash: 4C99360BCBA6F717DE35D5AE9554F25B
*/ */
public class EmulatedNativeCheckBoxLabelProvider extends AnnotationLabelProvider { public class EmulatedNativeCheckBoxLabelProvider extends AnnotationLabelProvider {
...@@ -185,6 +185,9 @@ public class EmulatedNativeCheckBoxLabelProvider extends AnnotationLabelProvider ...@@ -185,6 +185,9 @@ public class EmulatedNativeCheckBoxLabelProvider extends AnnotationLabelProvider
ImageData imageData = image.getImageData(); ImageData imageData = image.getImageData();
imageData.transparentPixel = imageData.palette.getPixel(greenScreen.getRGB()); imageData.transparentPixel = imageData.palette.getPixel(greenScreen.getRGB());
image.dispose();
greenScreen.dispose();
return new Image(control.getDisplay(), imageData); return new Image(control.getDisplay(), imageData);
} }
......
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