Author: tkreuzer
Date: Mon Apr 25 21:53:06 2011
New Revision: 51457
URL:
http://svn.reactos.org/svn/reactos?rev=51457&view=rev
Log:
[win32k]
Acquire ownership of the window clip region, before deleting it. Fixes a region leak.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/window.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Mon Apr 25 21:53:06
2011
@@ -210,7 +210,7 @@
}
pWnd->style |= WS_DISABLED;
}
-
+
if (Update)
{
IntNotifyWinEvent(EVENT_OBJECT_STATECHANGE, pWnd, OBJID_WINDOW, CHILDID_SELF,
0);
@@ -517,6 +517,7 @@
if(Window->hrgnClip)
{
+ IntGdiSetRegionOwner(Window->hrgnClip, GDI_OBJ_HMGR_POWNED);
GreDeleteObject(Window->hrgnClip);
Window->hrgnClip = NULL;
}
@@ -2265,7 +2266,7 @@
UserDereferenceObject(Window);
}
if (ParentWindow) UserDerefObjectCo(ParentWindow);
-
+
return ret;
}