mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
fixing wrong free calls
This commit is contained in:
parent
e081a0d810
commit
9f742f8aaa
2 changed files with 2 additions and 2 deletions
|
@ -2049,7 +2049,7 @@ FDynamicBuffer::~FDynamicBuffer ()
|
|||
{
|
||||
if (m_Data)
|
||||
{
|
||||
free (m_Data);
|
||||
M_Free (m_Data);
|
||||
m_Data = NULL;
|
||||
}
|
||||
m_Len = m_BufferLen = 0;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue