Module: wine Branch: master Commit: e6cd096d65e4fdfcc1fe7c481298748e7757b91b URL: http://source.winehq.org/git/wine.git/?a=commit;h=e6cd096d65e4fdfcc1fe7c4812...
Author: Michael Stefaniuc mstefani@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 )