Alexandre Julliard : gdi32: Add a missing release in the error path.

Alexandre Julliard julliard at winehq.org
Fri Aug 5 10:20:48 CDT 2011


Module: wine
Branch: master
Commit: 805f083f3464b7f4b9f68cbe67578cb12cbbcd4d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=805f083f3464b7f4b9f68cbe67578cb12cbbcd4d

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Aug  5 10:58:16 2011 +0200

gdi32: Add a missing release in the error path.

---

 dlls/gdi32/bitmap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/gdi32/bitmap.c b/dlls/gdi32/bitmap.c
index 3d7e1a2..69b09ad 100644
--- a/dlls/gdi32/bitmap.c
+++ b/dlls/gdi32/bitmap.c
@@ -179,6 +179,7 @@ update_format:
     info->bmiHeader.biPlanes   = 1;
     info->bmiHeader.biBitCount = bmp->bitmap.bmBitsPixel;
     if (info->bmiHeader.biHeight > 0) info->bmiHeader.biHeight = -info->bmiHeader.biHeight;
+    GDI_ReleaseObj( hbitmap );
     return ERROR_BAD_FORMAT;
 }
 




More information about the wine-cvs mailing list