[ros-diffs] [gadamopoulos] 53221: [win32k] - Delete the region passed to NtUserSetWindowRgn. Fixes a horrible region leak that happens in every window that uses SetWindowRgn

gadamopoulos at svn.reactos.org gadamopoulos at svn.reactos.org
Sun Aug 14 10:26:29 UTC 2011


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/subsystems/win32/win32k/ntuser/winpos.c?rev=53221&r1=53220&r2=53221&view=diff
==============================================================================
--- 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 */




More information about the Ros-diffs mailing list