Michael Stefaniuc : user32: Fix a memory leak on a error patch (Smatch).
Alexandre Julliard
julliard at winehq.org
Tue Oct 6 10:35:50 CDT 2009
Module: wine
Branch: master
Commit: e6cd096d65e4fdfcc1fe7c481298748e7757b91b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e6cd096d65e4fdfcc1fe7c481298748e7757b91b
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Tue Oct 6 00:53:24 2009 +0200
user32: Fix a memory leak on a error patch (Smatch).
---
dlls/user32/cursoricon.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c
index fca04ce..2ed1138 100644
--- a/dlls/user32/cursoricon.c
+++ b/dlls/user32/cursoricon.c
@@ -828,10 +828,10 @@ static HICON CURSORICON_CreateIconFromBMI( BITMAPINFO *bmi,
hXorBits = 0;
}
}
-
- HeapFree( GetProcessHeap(), 0, pSrcInfo );
- HeapFree( GetProcessHeap(), 0, pDestInfo );
}
+
+ HeapFree( GetProcessHeap(), 0, pSrcInfo );
+ HeapFree( GetProcessHeap(), 0, pDestInfo );
}
if( !hXorBits || !hAndBits )
More information about the wine-cvs
mailing list