diff options
author | Daroc Alden <setupminimal@users.noreply.github.com> | 2022-03-14 16:01:36 -0400 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-05-14 18:33:42 +0200 |
commit | ac139ec03deb67613e37ee53cc6fdf33a00b583b (patch) | |
tree | 934e1a067c1a9bd6b9194ef9f71aae4d60b8a2c5 | |
parent | b4f0e834bf7f0b40eae3924d2e1ac8bfed023659 (diff) | |
download | minetest-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.
-rw-r--r-- | src/emerge.cpp | 1 |
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; |