diff --git a/src/d_net.cpp b/src/d_net.cpp index b984799f6..b973c2db0 100644 --- a/src/d_net.cpp +++ b/src/d_net.cpp @@ -2056,6 +2056,7 @@ void FDynamicBuffer::SetData (const BYTE *data, int len) else { m_Len = 0; + M_Free(m_Data); } } diff --git a/src/info.h b/src/info.h index 19f03670d..680b6fcd8 100644 --- a/src/info.h +++ b/src/info.h @@ -217,7 +217,7 @@ public: bool ReplaceFactor; bool NoArmor; - void Apply(FName const &type); + void Apply(FName const type); void Clear() { DefaultFactor = FRACUNIT;