From 2c06987f674125d97de7f05a59e2ed9b14398d25 Mon Sep 17 00:00:00 2001 From: ZzZombo Date: Sun, 8 Feb 2015 14:35:45 +0800 Subject: [PATCH] - Fixed the sanity commit. --- src/d_net.cpp | 1 + src/info.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;