mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 12:23:42 +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 */
|
||||
ExFreePool(MenuItem->Text.Buffer);
|
||||
if (MenuItem->Text.Buffer) ExFreePool(MenuItem->Text.Buffer);
|
||||
ExFreePool(MenuItem);
|
||||
|
||||
return TRUE;
|
||||
|
|
|
@ -492,8 +492,8 @@ PATH_DestroyGdiPath ( GdiPath *pPath )
|
|||
{
|
||||
ASSERT(pPath!=NULL);
|
||||
|
||||
ExFreePool(pPath->pPoints);
|
||||
ExFreePool(pPath->pFlags);
|
||||
if (pPath->pPoints) ExFreePool(pPath->pPoints);
|
||||
if (pPath->pFlags) ExFreePool(pPath->pFlags);
|
||||
}
|
||||
|
||||
/* PATH_AssignGdiPath
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue