Fixing more implicit memory leaks to make it easier to look for the serious ones.
This commit is contained in:
@@ -46,6 +46,7 @@
|
|||||||
#include <boost/lambda/lambda.hpp>
|
#include <boost/lambda/lambda.hpp>
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
#include <boost/bind.hpp>
|
#include <boost/bind.hpp>
|
||||||
|
#include <boost/foreach.hpp>
|
||||||
#include <boost/uuid/uuid.hpp>
|
#include <boost/uuid/uuid.hpp>
|
||||||
#include <gsasl.h>
|
#include <gsasl.h>
|
||||||
|
|
||||||
@@ -747,9 +748,13 @@ ServerLobbyThread::Main()
|
|||||||
GetCallback().SignalNetServerError(e.GetErrorId(), e.GetOsErrorCode());
|
GetCallback().SignalNetServerError(e.GetErrorId(), e.GetOsErrorCode());
|
||||||
LOG_ERROR("Lobby exception: " << e.what());
|
LOG_ERROR("Lobby exception: " << e.what());
|
||||||
}
|
}
|
||||||
// Clear all sessions.
|
// Clear all sessions and games.
|
||||||
m_sessionManager.Clear();
|
m_sessionManager.Clear();
|
||||||
m_gameSessionManager.Clear();
|
m_gameSessionManager.Clear();
|
||||||
|
BOOST_FOREACH(const GameMap::value_type& tmpGame, m_gameMap) {
|
||||||
|
tmpGame.second->Exit();
|
||||||
|
}
|
||||||
|
m_gameMap.clear();
|
||||||
// Cancel pending timer callbacks.
|
// Cancel pending timer callbacks.
|
||||||
CancelTimers();
|
CancelTimers();
|
||||||
// Stop database engine.
|
// Stop database engine.
|
||||||
|
|||||||
Reference in New Issue
Block a user