mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +00:00
- Don't free buffers if they were not allocated.
svn path=/trunk/; revision=32581
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user