mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
src/client.cpp: Fix mapper memory leak
This commit is contained in:
parent
42cf5e972d
commit
ebe7b31538
1 changed files with 6 additions and 4 deletions
|
@ -302,7 +302,7 @@ Client::~Client()
|
|||
// Delete detached inventories
|
||||
for (std::map<std::string, Inventory*>::iterator
|
||||
i = m_detached_inventories.begin();
|
||||
i != m_detached_inventories.end(); i++){
|
||||
i != m_detached_inventories.end(); ++i) {
|
||||
delete i->second;
|
||||
}
|
||||
|
||||
|
@ -314,6 +314,8 @@ Client::~Client()
|
|||
if (mesh != NULL)
|
||||
m_device->getSceneManager()->getMeshCache()->removeMesh(mesh);
|
||||
}
|
||||
|
||||
delete m_mapper;
|
||||
}
|
||||
|
||||
void Client::connect(Address address,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue