Project: SWT
Bug 101795 GC.fillGradientRectangle() with GDI+ causes crash
Reported: 2005-06-26 15:03:59 | Status: resolved fixed

(SWT-RC4 and before) GC.fillGradientRectangle() lines 2204 - 2205 deletes the incorrect color causing a VM core dump. Gdip.Color_delete(fromColor); Gdip.Color_delete(toColor); must be changed to: Gdip.Color_delete(fromGpColor); Gdip.Color_delete(toGpColor);

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java