mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix memory leak in EmergeManager
This commit is contained in:
parent
37b7f094e3
commit
6bd15247f9
1 changed files with 5 additions and 0 deletions
|
@ -156,6 +156,11 @@ EmergeManager::~EmergeManager() {
|
||||||
mglist.clear();
|
mglist.clear();
|
||||||
|
|
||||||
delete biomedef;
|
delete biomedef;
|
||||||
|
|
||||||
|
if (params.sparams) {
|
||||||
|
delete params.sparams;
|
||||||
|
params.sparams = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue