fix various memory leaks
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