mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-28 11:45:29 +01:00
Fix memory leak in EmergeManager
This commit is contained in:
@@ -156,6 +156,11 @@ EmergeManager::~EmergeManager() {
|
|||||||
mglist.clear();
|
mglist.clear();
|
||||||
|
|
||||||
delete biomedef;
|
delete biomedef;
|
||||||
|
|
||||||
|
if (params.sparams) {
|
||||||
|
delete params.sparams;
|
||||||
|
params.sparams = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user