diff options
author | PilzAdam <pilzadam@minetest.net> | 2014-07-06 15:41:56 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2014-07-06 15:41:59 +0200 |
commit | 6bd15247f91284f7d7869367eafa9064d7f2f727 (patch) | |
tree | 5a97e61ae8e4fc9639fe9c994798c462a4801ea5 | |
parent | 37b7f094e3ea502339794f64e8bad22444c6fb54 (diff) | |
download | minetest-6bd15247f91284f7d7869367eafa9064d7f2f727.tar.gz minetest-6bd15247f91284f7d7869367eafa9064d7f2f727.tar.bz2 minetest-6bd15247f91284f7d7869367eafa9064d7f2f727.zip |
Fix memory leak in EmergeManager
-rw-r--r-- | src/emerge.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emerge.cpp b/src/emerge.cpp index 443d70384..95a093213 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; + } } |