[ros-diffs] [tkreuzer] 46638: [WIN32K] Just dereference the PDEV's surface and let the driver free it.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Thu Apr 1 07:44:09 CEST 2010


Author: tkreuzer
Date: Thu Apr  1 07:44:09 2010
New Revision: 46638

URL: http://svn.reactos.org/svn/reactos?rev=46638&view=rev
Log:
[WIN32K]
Just dereference the PDEV's surface and let the driver free 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=46638&r1=46637&r2=46638&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] Thu Apr  1 07:44:09 2010
@@ -57,10 +57,11 @@
     /* Check if references are left */
     if (ppdev->cPdevRefs == 0)
     {
-        /* Release surface */
+        /* Do we have a surface? */
         if(ppdev->pSurface)
         {
-            SURFACE_FreeSurface(ppdev->pSurface);
+            /* Release the surface and let the driver free it */
+            SURFACE_ShareUnlockSurface(ppdev->pSurface);
             ppdev->pfn.DisableSurface(ppdev->dhpdev);
         }
 




More information about the Ros-diffs mailing list