Project: SWT
Bug 409239 Typo in win32 Menu
Reported: 2013-05-28 03:26:17 | Status: resolved fixed

I believe the following two code fragments in win32/org/eclipse/swt/widgets/Menu.java: void updateBackground () { if (hBrush == 0) OS.DeleteObject (hBrush); hBrush = 0; ... void releaseWidget () { super.releaseWidget (); backgroundImage = null; if (hBrush == 0) OS.DeleteObject (hBrush); hBrush = 0; ... should be checking for (hBrush != 0) instead of (hBrush == 0).

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java