Fix memory leak in EmergeManager
authorPilzAdam <pilzadam@minetest.net>
Sun, 6 Jul 2014 13:41:56 +0000 (15:41 +0200)
committerPilzAdam <pilzadam@minetest.net>
Sun, 6 Jul 2014 13:41:59 +0000 (15:41 +0200)
src/emerge.cpp

index 443d70384819de64b90a4f0ef45bea81bd298e7e..95a0932137b6bf83e57a86c506c7921db995378b 100644 (file)
@@ -156,6 +156,11 @@ EmergeManager::~EmergeManager() {
        mglist.clear();
 
        delete biomedef;
+
+       if (params.sparams) {
+               delete params.sparams;
+               params.sparams = NULL;
+       }
 }