mirror of
https://github.com/reactos/reactos.git
synced 2025-05-30 06:28:34 +00:00
[WIN32K]
Free the surface instead of unlocking it svn path=/branches/reactos-yarotows/; revision=46573
This commit is contained in:
parent
2bfb2d80b4
commit
6b19e6defc
1 changed files with 3 additions and 1 deletions
|
@ -52,13 +52,15 @@ PDEVOBJ_vRelease(PPDEVOBJ ppdev)
|
|||
/* 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue