[ros-diffs] [jgardou] 46573: [WIN32K] Free the surface instead of unlocking it

jgardou at svn.reactos.org jgardou at svn.reactos.org
Mon Mar 29 21:50:49 CEST 2010


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/win32/win32k/eng/pdevobj.c?rev=46573&r1=46572&r2=46573&view=diff
==============================================================================
--- 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);
         }
 




More information about the Ros-diffs mailing list