From ac139ec03deb67613e37ee53cc6fdf33a00b583b Mon Sep 17 00:00:00 2001 From: Daroc Alden Date: Mon, 14 Mar 2022 16:01:36 -0400 Subject: Fix memory leak in EmergeManager EmergeManager keeps a copy of the BiomeGen that it creates, but never deletes it. --- src/emerge.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3