mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 15:16:35 +00:00
- Don't free buffers if they were not allocated.
svn path=/trunk/; revision=32581
This commit is contained in:
parent
c0a5256ea4
commit
ac8b86183a
2 changed files with 3 additions and 3 deletions
|
@ -238,7 +238,7 @@ IntFreeMenuItem(PMENU_OBJECT Menu, PMENU_ITEM MenuItem,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Free memory */
|
/* Free memory */
|
||||||
ExFreePool(MenuItem->Text.Buffer);
|
if (MenuItem->Text.Buffer) ExFreePool(MenuItem->Text.Buffer);
|
||||||
ExFreePool(MenuItem);
|
ExFreePool(MenuItem);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
|
@ -492,8 +492,8 @@ PATH_DestroyGdiPath ( GdiPath *pPath )
|
||||||
{
|
{
|
||||||
ASSERT(pPath!=NULL);
|
ASSERT(pPath!=NULL);
|
||||||
|
|
||||||
ExFreePool(pPath->pPoints);
|
if (pPath->pPoints) ExFreePool(pPath->pPoints);
|
||||||
ExFreePool(pPath->pFlags);
|
if (pPath->pFlags) ExFreePool(pPath->pFlags);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PATH_AssignGdiPath
|
/* PATH_AssignGdiPath
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue