diff --git a/src/d_net.cpp b/src/d_net.cpp index 04269f1d883..8a21205bd3c 100644 --- a/src/d_net.cpp +++ b/src/d_net.cpp @@ -2049,7 +2049,7 @@ FDynamicBuffer::~FDynamicBuffer () { if (m_Data) { - free (m_Data); + M_Free (m_Data); m_Data = NULL; } m_Len = m_BufferLen = 0; diff --git a/src/p_states.cpp b/src/p_states.cpp index 133ac4ad67f..8ec19e6538b 100644 --- a/src/p_states.cpp +++ b/src/p_states.cpp @@ -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; } }