fix various memory leaks

This commit is contained in:
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

@ -246,6 +246,8 @@ static scene::IAnimatedMesh* extrudeARGB(u32 twidth, u32 theight, u8 *data)
} }
} }
delete[] solidity;
// Add to mesh // Add to mesh
scene::SMesh *mesh = new scene::SMesh(); scene::SMesh *mesh = new scene::SMesh();
mesh->addMeshBuffer(buf); mesh->addMeshBuffer(buf);

@ -904,6 +904,9 @@ Server::~Server()
*/ */
stop(); stop();
//shutdown all emerge threads first!
delete m_emerge;
/* /*
Delete clients Delete clients
*/ */
@ -923,7 +926,6 @@ Server::~Server()
// Delete things in the reverse order of creation // Delete things in the reverse order of creation
delete m_env; delete m_env;
delete m_rollback; delete m_rollback;
delete m_emerge;
delete m_event; delete m_event;
delete m_itemdef; delete m_itemdef;
delete m_nodedef; delete m_nodedef;

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