Skip to content

Commit 63d03fc

Browse files
arunjose696akoch-yatta
authored andcommitted
Remove redundant GC.dispose() calls for Image objects
This minor refactoring eliminates unnecessary calls to GC.dispose() since disposing an Image automatically disposes its associated GC. There is no visual impact from this change.
1 parent 287567c commit 63d03fc

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

bundles/org.eclipse.jface/src/org/eclipse/jface/preference/ColorSelector.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ private ImageData getImageData(int zoom) {
192192
}
193193
gc.setLineWidth(2);
194194
gc.drawRectangle(image.getBounds());
195-
gc.dispose();
196195

197196
ImageData data = image.getImageData(zoom);
198197
image.dispose();

0 commit comments

Comments
 (0)