[gdiplus] Don't free if alloc failed

Dan Kegel dank at kegel.com
Sun Jan 13 19:42:28 CST 2008


Don't free the image if creating it failed.
This fixes a trivial crash for me in gdiplus/tests/image.c.

 gdiplus/tests/image.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdiplus-crashfix.patch
Type: text/x-patch
Size: 1026 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080113/4f5f8dfe/attachment.bin 


More information about the wine-patches mailing list