mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +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
|
@ -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…
Reference in a new issue