summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-03 20:00:46 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-03 20:00:46 +0300
commita1bd0179b28fa93c771bc5602f64746878f0ffad (patch)
treeff696a9b98c32441b06ffabf2a8ca7312590c8e3 /src/client.cpp
parent41953ac4902ca11bb07b0aab53e811ca68ce4f64 (diff)
downloadmanaverse-a1bd0179b28fa93c771bc5602f64746878f0ffad.tar.gz
manaverse-a1bd0179b28fa93c771bc5602f64746878f0ffad.tar.bz2
manaverse-a1bd0179b28fa93c771bc5602f64746878f0ffad.tar.xz
manaverse-a1bd0179b28fa93c771bc5602f64746878f0ffad.zip
fix some leaks on exit.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 89fa1dc4e..d9f57854f 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -73,6 +73,7 @@
#include "net/gamehandler.h"
#include "net/generalhandler.h"
#include "net/guildhandler.h"
+#include "net/inventoryhandler.h"
#include "net/loginhandler.h"
#include "net/net.h"
#include "net/npchandler.h"
@@ -765,6 +766,9 @@ void Client::gameClear()
SDL_RemoveTimer(mLogicCounterId);
SDL_RemoveTimer(mSecondsCounterId);
+ if (Net::getInventoryHandler())
+ Net::getInventoryHandler()->clear();
+
// Unload XML databases
CharDB::unload();
ColorDB::unload();