Alexandre Julliard : user32: Free the window region once it has been set.

Alexandre Julliard julliard at winehq.org
Tue Sep 28 11:13:30 CDT 2010


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Sep 27 21:06:43 2010 +0200

user32: Free the window region once it has been set.

---

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

diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index 17730f2..ca3b8e0 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -221,6 +221,7 @@ int WINAPI SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL bRedraw )
         if (!bRedraw) swp_flags |= SWP_NOREDRAW;
         SetWindowPos( hwnd, 0, 0, 0, 0, 0, swp_flags );
         invalidate_dce( hwnd, NULL );
+        if (hrgn) DeleteObject( hrgn );
     }
     return ret;
 }




More information about the wine-cvs mailing list