mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
fix various memory leaks
This commit is contained in:
parent
58fd39de35
commit
04c3b17c78
@ -246,6 +246,8 @@ static scene::IAnimatedMesh* extrudeARGB(u32 twidth, u32 theight, u8 *data)
|
||||
}
|
||||
}
|
||||
|
||||
delete[] solidity;
|
||||
|
||||
// Add to mesh
|
||||
scene::SMesh *mesh = new scene::SMesh();
|
||||
mesh->addMeshBuffer(buf);
|
||||
|
@ -904,6 +904,9 @@ Server::~Server()
|
||||
*/
|
||||
stop();
|
||||
|
||||
//shutdown all emerge threads first!
|
||||
delete m_emerge;
|
||||
|
||||
/*
|
||||
Delete clients
|
||||
*/
|
||||
@ -923,7 +926,6 @@ Server::~Server()
|
||||
// Delete things in the reverse order of creation
|
||||
delete m_env;
|
||||
delete m_rollback;
|
||||
delete m_emerge;
|
||||
delete m_event;
|
||||
delete m_itemdef;
|
||||
delete m_nodedef;
|
||||
|
@ -1781,5 +1781,7 @@ void run_tests()
|
||||
errorstream<<"run_tests() aborting."<<std::endl;
|
||||
abort();
|
||||
}
|
||||
delete idef;
|
||||
delete ndef;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user