user32: add a missing heapfree

Austin English austinenglish at gmail.com
Sat Feb 21 15:42:26 CST 2009


See bug 16908.

-- 
-Austin
-------------- next part --------------
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index 6419478..bb08e1e 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -187,6 +187,7 @@ int WINAPI SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL bRedraw )
             ret = !wine_server_call_err( req );
         }
         SERVER_END_REQ;
+        HeapFree( GetProcessHeap(), 0, data );
     }
     else  /* clear existing region */
     {


More information about the wine-patches mailing list