aboutsummaryrefslogtreecommitdiff
path: root/src/emerge.cpp
diff options
context:
space:
mode:
authorDaroc Alden <setupminimal@users.noreply.github.com>2022-03-14 16:01:36 -0400
committersfan5 <sfan5@live.de>2022-05-14 18:33:42 +0200
commitac139ec03deb67613e37ee53cc6fdf33a00b583b (patch)
tree934e1a067c1a9bd6b9194ef9f71aae4d60b8a2c5 /src/emerge.cpp
parentb4f0e834bf7f0b40eae3924d2e1ac8bfed023659 (diff)
downloadminetest-ac139ec03deb67613e37ee53cc6fdf33a00b583b.tar.gz
minetest-ac139ec03deb67613e37ee53cc6fdf33a00b583b.tar.bz2
minetest-ac139ec03deb67613e37ee53cc6fdf33a00b583b.zip
Fix memory leak in EmergeManager
EmergeManager keeps a copy of the BiomeGen that it creates, but never deletes it.
Diffstat (limited to 'src/emerge.cpp')
-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;