diff options
author | Silenio Quarti <silenio> | 2005-08-02 20:11:08 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2005-08-02 20:11:08 +0000 |
commit | d5baa3733c67a981b8927b2424c098139ca8db67 (patch) | |
tree | 7eb3a537b06668eb4ac411bf64de9caaf73d803f | |
parent | 964f59eb93aac781c2eac1ad63437d26303b0d27 (diff) | |
download | eclipse.platform.swt-d5baa3733c67a981b8927b2424c098139ca8db67.tar.gz eclipse.platform.swt-d5baa3733c67a981b8927b2424c098139ca8db67.tar.xz eclipse.platform.swt-d5baa3733c67a981b8927b2424c098139ca8db67.zip |
105849 - fixing leaksv3201a
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java index bec4566097..9c5d5f57a4 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java @@ -943,8 +943,8 @@ int[] createGdipImage() { } else { img = Gdip.Bitmap_new(handle); } - if (iconInfo.hbmColor == 0) OS.DeleteObject(iconInfo.hbmColor); - if (iconInfo.hbmMask == 0) OS.DeleteObject(iconInfo.hbmMask); + if (iconInfo.hbmColor != 0) OS.DeleteObject(iconInfo.hbmColor); + if (iconInfo.hbmMask != 0) OS.DeleteObject(iconInfo.hbmMask); return new int[]{img, pixels}; } default: SWT.error(SWT.ERROR_UNSUPPORTED_FORMAT); |