[Win32k]
authorJames Tabor <james.tabor@reactos.org>
Tue, 19 Apr 2011 18:18:19 +0000 (18:18 +0000)
committerJames Tabor <james.tabor@reactos.org>
Tue, 19 Apr 2011 18:18:19 +0000 (18:18 +0000)
- This should fix the dcattr leaked when deleting a DC, See bug 6119.

svn path=/trunk/; revision=51405

reactos/subsystems/win32/win32k/objects/dclife.c

index b83c6f0..d0c86c8 100644 (file)
@@ -827,6 +827,8 @@ IntGdiDeleteDC(HDC hDC, BOOL Force)
 
     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");