Skip to content

Commit bc76588

Browse files
committed
Destroy correct temporary handle when loading image data
1 parent 055805f commit bc76588

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics

1 file changed

+1
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,7 @@ protected ElementAtZoom<ImageData> loadImageData(int zoom) {
22362236
imageDataAtZoom = ImageDataLoader.load(fileForZoom.element(), fileForZoom.zoom(), zoom);
22372237
} else {
22382238
imageDataAtZoom = new ElementAtZoom<>(nativeInitializedImage.getImageData(), fileForZoom.zoom());
2239-
destroyHandleForZoom(zoom);
2239+
destroyHandleForZoom(fileForZoom.zoom());
22402240
}
22412241
return imageDataAtZoom;
22422242
}

0 commit comments

Comments
 (0)