mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 03:05:40 +00:00
[win32k]
Acquire ownership of the window clip region, before deleting it. Fixes a region leak. svn path=/trunk/; revision=51457
This commit is contained in:
parent
2e7e8bb0f6
commit
7ba64c2ad6
1 changed files with 3 additions and 2 deletions
|
@ -517,6 +517,7 @@ static LRESULT co_UserFreeWindow(PWND Window,
|
|||
|
||||
if(Window->hrgnClip)
|
||||
{
|
||||
IntGdiSetRegionOwner(Window->hrgnClip, GDI_OBJ_HMGR_POWNED);
|
||||
GreDeleteObject(Window->hrgnClip);
|
||||
Window->hrgnClip = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue