[WIN32K]
authorJérôme Gardou <jerome.gardou@reactos.org>
Sun, 28 Mar 2010 21:45:43 +0000 (21:45 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Sun, 28 Mar 2010 21:45:43 +0000 (21:45 +0000)
Release ppdev when deleting DC

svn path=/branches/reactos-yarotows/; revision=46527

subsystems/win32/win32k/objects/dclife.c

index 9df6683..84ce911 100644 (file)
@@ -374,6 +374,8 @@ ASSERT(pdc->rosdc.hGCClipRgn);
 
     PATH_Delete(pdc->dclevel.hPath);
 
+    PDEVOBJ_vRelease(pdc->ppdev) ;
+
     return TRUE;
 }
 
@@ -653,8 +655,6 @@ NtGdiCreateCompatibleDC(HDC hdc)
     /* Allocate a dc attribute */
     DC_AllocDcAttr(pdcNew);
 
-    PDEVOBJ_vRelease(ppdev);
-
     // HACK!
     DC_vSelectSurface(pdcNew, psurfDefaultBitmap);