Author: gadamopoulos
Date: Sun Aug 14 10:26:28 2011
New Revision: 53221
URL:
http://svn.reactos.org/svn/reactos?rev=53221&view=rev
Log:
[win32k]
- Delete the region passed to NtUserSetWindowRgn. Fixes a horrible region leak that
happens in every window that uses SetWindowRgn
Modified:
branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/winpos.c
Modified: branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/winpos.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/ThemesSupport/subsyst…
==============================================================================
--- branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1]
(original)
+++ branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1]
Sun Aug 14 10:26:28 2011
@@ -2073,6 +2073,9 @@
hrgnCopy = NULL;
}
+ /* Delete the region passed by the caller */
+ GreDeleteObject(hRgn);
+
if (Window->hrgnClip)
{
/* Delete no longer needed region handle */