[Client] Fix memory leaks

This commit is contained in:
Koncord 2017-04-30 13:56:30 +08:00
parent 3372f27f3a
commit eda74ddf44
3 changed files with 3 additions and 7 deletions

View file

@ -22,12 +22,6 @@ mwmp::CellController::CellController()
{ {
} }
mwmp::CellController::~CellController()
{
}
void CellController::updateLocal(bool forceUpdate) void CellController::updateLocal(bool forceUpdate)
{ {
for (std::map<std::string, mwmp::Cell *>::iterator it = cellsInitialized.begin(); it != cellsInitialized.end();) for (std::map<std::string, mwmp::Cell *>::iterator it = cellsInitialized.begin(); it != cellsInitialized.end();)

View file

@ -14,7 +14,6 @@ namespace mwmp
public: public:
CellController(); CellController();
~CellController();
void updateLocal(bool forceUpdate); void updateLocal(bool forceUpdate);
void updateDedicated(float dt); void updateDedicated(float dt);

View file

@ -94,6 +94,9 @@ Main::~Main()
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "tes3mp stopped"); LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "tes3mp stopped");
delete mNetworking; delete mNetworking;
delete mLocalPlayer; delete mLocalPlayer;
delete mCellController;
delete mGUIController;
delete mMechanicsHelper;
PlayerList::cleanUp(); PlayerList::cleanUp();
} }