user32: Free the window region once it has been set.
This commit is contained in:
parent
5594c4eba8
commit
2f6d41de46
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue