Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
kernel
Commits
f83c516f
Commit
f83c516f
authored
Oct 11, 2016
by
Simon Barner
Browse files
- Fix some SWT resource leaks (Color, Image)
refs 2709
parent
3c90b738
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/annotation/labelprovider/EmulatedNativeCheckBoxLabelProvider.java
View file @
f83c516f
...
...
@@ -61,7 +61,7 @@ import org.fortiss.tooling.base.ui.annotation.view.IAnnotationViewPart;
* @author diewald
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
GREEN
Hash:
D480092E250130095120B89670E5D4DF
* @ConQAT.Rating
YELLOW
Hash:
4C99360BCBA6F717DE35D5AE9554F25B
*/
public
class
EmulatedNativeCheckBoxLabelProvider
extends
AnnotationLabelProvider
{
...
...
@@ -185,6 +185,9 @@ public class EmulatedNativeCheckBoxLabelProvider extends AnnotationLabelProvider
ImageData
imageData
=
image
.
getImageData
();
imageData
.
transparentPixel
=
imageData
.
palette
.
getPixel
(
greenScreen
.
getRGB
());
image
.
dispose
();
greenScreen
.
dispose
();
return
new
Image
(
control
.
getDisplay
(),
imageData
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment