Author: jgardou
Date: Mon Mar 29 21:50:49 2010
New Revision: 46573
URL: 
http://svn.reactos.org/svn/reactos?rev=46573&view=rev
Log:
[WIN32K]
Free the surface instead of unlocking it
Modified:
    branches/reactos-yarotows/subsystems/win32/win32k/eng/pdevobj.c
Modified: branches/reactos-yarotows/subsystems/win32/win32k/eng/pdevobj.c
URL:
http://svn.reactos.org/svn/reactos/branches/reactos-yarotows/subsystems/win…
==============================================================================
--- branches/reactos-yarotows/subsystems/win32/win32k/eng/pdevobj.c [iso-8859-1]
(original)
+++ branches/reactos-yarotows/subsystems/win32/win32k/eng/pdevobj.c [iso-8859-1] Mon Mar
29 21:50:49 2010
@@ -52,13 +52,15 @@
     /* Decrease reference count */
     --ppdev->cPdevRefs;
+    ASSERT(ppdev->cPdevRefs >= 0) ;
+
     /* Check if references are left */
     if (ppdev->cPdevRefs == 0)
     {
         /* Release surface */
         if(ppdev->pSurface)
         {
-            SURFACE_ShareUnlockSurface(ppdev->pSurface);
+            SURFACE_FreeSurface(ppdev->pSurface);
             ppdev->pfn.DisableSurface(ppdev->dhpdev);
         }