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

This commit is contained in:
Alexandre Julliard 2010-09-27 21:06:43 +02:00
parent 5594c4eba8
commit 2f6d41de46
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}