forked from Mirrorlandia_minetest/minetest
Fix memory leak in EmergeManager
EmergeManager keeps a copy of the BiomeGen that it creates, but never deletes it.
This commit is contained in:
parent
b4f0e834bf
commit
ac139ec03d
@ -202,6 +202,7 @@ EmergeManager::~EmergeManager()
|
|||||||
delete m_mapgens[i];
|
delete m_mapgens[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete biomegen;
|
||||||
delete biomemgr;
|
delete biomemgr;
|
||||||
delete oremgr;
|
delete oremgr;
|
||||||
delete decomgr;
|
delete decomgr;
|
||||||
|
Loading…
Reference in New Issue
Block a user