projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37b7f09
)
Fix memory leak in EmergeManager
author
PilzAdam
<pilzadam@minetest.net>
Sun, 6 Jul 2014 13:41:56 +0000
(15:41 +0200)
committer
PilzAdam
<pilzadam@minetest.net>
Sun, 6 Jul 2014 13:41:59 +0000
(15:41 +0200)
src/emerge.cpp
patch
|
blob
|
history
diff --git
a/src/emerge.cpp
b/src/emerge.cpp
index 443d70384819de64b90a4f0ef45bea81bd298e7e..95a0932137b6bf83e57a86c506c7921db995378b 100644
(file)
--- 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;
+ }
}