Skip to content

Commit

Permalink
fixing wrong free calls
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored and alexey-lysiuk committed Sep 17, 2017
1 parent e081a0d commit 9f742f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/d_net.cpp
Expand Up @@ -2049,7 +2049,7 @@ FDynamicBuffer::~FDynamicBuffer ()
{
if (m_Data)
{
free (m_Data);
M_Free (m_Data);
m_Data = NULL;
}
m_Len = m_BufferLen = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/p_states.cpp
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 9f742f8

Please sign in to comment.