fixing wrong free calls

This commit is contained in:
David Carlier 2017-09-16 21:24:31 +01:00 committed by alexey.lysiuk
parent e081a0d810
commit 9f742f8aaa
2 changed files with 2 additions and 2 deletions

View file

@ -2049,7 +2049,7 @@ FDynamicBuffer::~FDynamicBuffer ()
{
if (m_Data)
{
free (m_Data);
M_Free (m_Data);
m_Data = NULL;
}
m_Len = m_BufferLen = 0;

View file

@ -154,7 +154,7 @@ void FStateLabels::Destroy ()
if (Labels[i].Children != NULL)
{
Labels[i].Children->Destroy();
free(Labels[i].Children); // These are malloc'd, not new'd!
M_Free(Labels[i].Children); // These are malloc'd, not new'd!
Labels[i].Children = NULL;
}
}