fix various memory leaks

pull/632/merge
sapier 2013-04-07 22:27:27 +02:00 committed by kwolekr
parent 58fd39de35
commit 04c3b17c78
3 changed files with 7 additions and 1 deletions

View File

@ -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);

View File

@ -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;

View File

@ -1781,5 +1781,7 @@ void run_tests()
errorstream<<"run_tests() aborting."<<std::endl;
abort();
}
delete idef;
delete ndef;
}