aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2014-07-06 15:41:56 +0200
committerPilzAdam <pilzadam@minetest.net>2014-07-06 15:41:59 +0200
commit6bd15247f91284f7d7869367eafa9064d7f2f727 (patch)
tree5a97e61ae8e4fc9639fe9c994798c462a4801ea5
parent37b7f094e3ea502339794f64e8bad22444c6fb54 (diff)
downloadminetest-6bd15247f91284f7d7869367eafa9064d7f2f727.tar.gz
minetest-6bd15247f91284f7d7869367eafa9064d7f2f727.tar.bz2
minetest-6bd15247f91284f7d7869367eafa9064d7f2f727.zip
Fix memory leak in EmergeManager
-rw-r--r--src/emerge.cpp5
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;
+ }
}