- Don't free buffers if they were not allocated.

svn path=/trunk/; revision=32581
This commit is contained in:
Aleksey Bragin 2008-03-06 11:11:34 +00:00
parent c0a5256ea4
commit ac8b86183a
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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