mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[WIN32K]
- Fix a memory leak in EngUnloadImage - add an ASSERT svn path=/trunk/; revision=55970
This commit is contained in:
parent
40a8a3c833
commit
fed10df057
2 changed files with 4 additions and 2 deletions
|
@ -98,6 +98,7 @@ LDEVOBJ_vFreeLDEV(PLDEVOBJ pldev)
|
|||
{
|
||||
/* Make sure we don't have a driver loaded */
|
||||
ASSERT(pldev && pldev->pGdiDriverInfo == NULL);
|
||||
ASSERT(pldev->cRefs == 0);
|
||||
|
||||
/* Free the memory */
|
||||
ExFreePoolWithTag(pldev, GDITAG_LDEV);
|
||||
|
@ -472,8 +473,9 @@ EngUnloadImage(
|
|||
if (pldev->pldevNext)
|
||||
pldev->pldevNext->pldevPrev = pldev->pldevPrev;
|
||||
|
||||
/* Unload the image */
|
||||
/* Unload the image and free the LDEV */
|
||||
LDEVOBJ_vUnloadImage(pldev);
|
||||
LDEVOBJ_vFreeLDEV(pldev);
|
||||
}
|
||||
|
||||
/* Unlock loader */
|
||||
|
|
|
@ -190,7 +190,7 @@ PDEVOBJ_pdmMatchDevMode(
|
|||
{
|
||||
PGRAPHICS_DEVICE pGraphicsDevice;
|
||||
PDEVMODEW pdmCurrent;
|
||||
INT i;
|
||||
ULONG i;
|
||||
DWORD dwFields;
|
||||
|
||||
pGraphicsDevice = ppdev->pGraphicsDevice;
|
||||
|
|
Loading…
Reference in a new issue