From: PilzAdam Date: Sun, 6 Jul 2014 13:41:56 +0000 (+0200) Subject: Fix memory leak in EmergeManager X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=6bd15247f91284f7d7869367eafa9064d7f2f727;p=zefram%2Fminetest%2Fminetest_engine.git Fix memory leak in EmergeManager --- diff --git a/src/emerge.cpp b/src/emerge.cpp index 443d7038..95a09321 100644 --- a/src/emerge.cpp +++ b/src/emerge.cpp @@ -156,6 +156,11 @@ EmergeManager::~EmergeManager() { mglist.clear(); delete biomedef; + + if (params.sparams) { + delete params.sparams; + params.sparams = NULL; + } }