[WIN32K]
authorJérôme Gardou <jerome.gardou@reactos.org>
Sat, 3 Apr 2010 16:42:04 +0000 (16:42 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Sat, 3 Apr 2010 16:42:04 +0000 (16:42 +0000)
Unlock surface when deleting DC

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

subsystems/win32/win32k/objects/dclife.c

index 73e527a..d734284 100644 (file)
@@ -377,6 +377,9 @@ ASSERT(pdc->rosdc.hGCClipRgn);
 
     PATH_Delete(pdc->dclevel.hPath);
 
+    if(pdc->dclevel.pSurface)
+        SURFACE_ShareUnlockSurface(pdc->dclevel.pSurface);
+
     PDEVOBJ_vRelease(pdc->ppdev) ;
 
     return TRUE;