diff options
author | Daroc Alden <setupminimal@users.noreply.github.com> | 2022-03-14 16:01:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 21:01:36 +0100 |
commit | e54f5e544f27860ba2fa6bfea1a4e1fa3f5d4941 (patch) | |
tree | 17e1b5801c92b13b7315ac6bcdc227c43e6910e7 /src | |
parent | 289c3ff37723402bab71e2849abe060403ef8f41 (diff) | |
download | minetest-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.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; |