mirror of
https://github.com/reactos/reactos.git
synced 2025-06-09 20:11:14 +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 */
|
/* Decrease reference count */
|
||||||
--ppdev->cPdevRefs;
|
--ppdev->cPdevRefs;
|
||||||
|
|
||||||
|
ASSERT(ppdev->cPdevRefs >= 0) ;
|
||||||
|
|
||||||
/* Check if references are left */
|
/* Check if references are left */
|
||||||
if (ppdev->cPdevRefs == 0)
|
if (ppdev->cPdevRefs == 0)
|
||||||
{
|
{
|
||||||
/* Release surface */
|
/* Release surface */
|
||||||
if(ppdev->pSurface)
|
if(ppdev->pSurface)
|
||||||
{
|
{
|
||||||
SURFACE_ShareUnlockSurface(ppdev->pSurface);
|
SURFACE_FreeSurface(ppdev->pSurface);
|
||||||
ppdev->pfn.DisableSurface(ppdev->dhpdev);
|
ppdev->pfn.DisableSurface(ppdev->dhpdev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue