Skip to content

Commit 7468f58

Browse files
Resource leak 2.0
1 parent 134bef1 commit 7468f58

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
@@ -1916,7 +1916,7 @@ private abstract class AbstractImageProviderWrapper {
19161916
abstract AbstractImageProviderWrapper createCopy(Image image);
19171917

19181918
protected boolean isDisposed() {
1919-
return isInitialized && isDestroyed;
1919+
return !isInitialized || isDestroyed;
19201920
}
19211921

19221922
protected void destroy() {

0 commit comments

Comments
 (0)