Author: jimtabor
Date: Tue Apr 19 18:18:19 2011
New Revision: 51405
URL:
http://svn.reactos.org/svn/reactos?rev=51405&view=rev
Log:
[Win32k]
- This should fix the dcattr leaked when deleting a DC, See bug 6119.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/dclife.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dclife.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dclife.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dclife.c [iso-8859-1] Tue Apr 19
18:18:19 2011
@@ -827,6 +827,8 @@
if (!IsObjectDead(hDC))
{
+ DC_vFreeDcAttr(DCToDelete); // Plug a leak see bug 6119!
+
if (!GDIOBJ_FreeObjByHandle(hDC, GDI_OBJECT_TYPE_DC))
{
DPRINT1("DC_FreeDC failed\n");