From 9f742f8aaa5fabe5eceff5999db8eed988c6135d Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 16 Sep 2017 21:24:31 +0100 Subject: [PATCH] fixing wrong free calls --- src/d_net.cpp | 2 +- src/p_states.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } }