aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaroc Alden <setupminimal@users.noreply.github.com>2022-03-14 16:01:36 -0400
committerGitHub <noreply@github.com>2022-03-14 21:01:36 +0100
commite54f5e544f27860ba2fa6bfea1a4e1fa3f5d4941 (patch)
tree17e1b5801c92b13b7315ac6bcdc227c43e6910e7 /src
parent289c3ff37723402bab71e2849abe060403ef8f41 (diff)
downloadminetest-e54f5e544f27860ba2fa6bfea1a4e1fa3f5d4941.tar.gz
minetest-e54f5e544f27860ba2fa6bfea1a4e1fa3f5d4941.tar.bz2
minetest-e54f5e544f27860ba2fa6bfea1a4e1fa3f5d4941.zip
Fix memory leak in EmergeManager
EmergeManager keeps a copy of the BiomeGen that it creates, but never deletes it.
Diffstat (limited to 'src')
-rw-r--r--src/emerge.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emerge.cpp b/src/emerge.cpp
index 55ae99caf..3760b24e6 100644
--- a/src/emerge.cpp
+++ b/src/emerge.cpp
@@ -202,6 +202,7 @@ EmergeManager::~EmergeManager()
delete m_mapgens[i];
}
+ delete biomegen;
delete biomemgr;
delete oremgr;
delete decomgr;