summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-19 20:26:11 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-19 20:26:11 +0300
commitc5400b010783f5e695569163b0ad42afb123b4f8 (patch)
tree9f558a1f80b20562017e8ee081b6d854af8c71b5 /src/client.cpp
parenteff2fe4be9a25e6f870967d1a5e492c05f6b0abd (diff)
downloadplus-c5400b010783f5e695569163b0ad42afb123b4f8.tar.gz
plus-c5400b010783f5e695569163b0ad42afb123b4f8.tar.bz2
plus-c5400b010783f5e695569163b0ad42afb123b4f8.tar.xz
plus-c5400b010783f5e695569163b0ad42afb123b4f8.zip
Fix memory leak in ipc on client exit.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 36dd0536c..e620b0a51 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -83,6 +83,7 @@
#include "net/generalhandler.h"
#include "net/guildhandler.h"
#include "net/inventoryhandler.h"
+#include "net/ipc.h"
#include "net/loginhandler.h"
#include "net/net.h"
#include "net/netconsts.h"
@@ -624,6 +625,8 @@ void Client::gameClear()
if (Net::getChatHandler())
Net::getChatHandler()->clear();
+ delete2(ipc);
+
#ifdef USE_MUMBLE
delete2(mumbleManager);
#endif