summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-09 16:27:31 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-09 16:27:31 +0300
commitc06debb4683c784f35093af8fc08ca142a58f5de (patch)
tree8073c846715379d7ee388b88a0cac33e6512df42 /src/client.cpp
parentc8a5af485ef256446c761409c9947a6ca521bc25 (diff)
downloadmanaplus-c06debb4683c784f35093af8fc08ca142a58f5de.tar.gz
manaplus-c06debb4683c784f35093af8fc08ca142a58f5de.tar.bz2
manaplus-c06debb4683c784f35093af8fc08ca142a58f5de.tar.xz
manaplus-c06debb4683c784f35093af8fc08ca142a58f5de.zip
Fix for party memory leak and crash.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index fec408a2f..78688fa03 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -76,6 +76,7 @@
#include "net/net.h"
#include "net/npchandler.h"
#include "net/packetcounters.h"
+#include "net/partyhandler.h"
#include "net/worldinfo.h"
#include "resources/beinginfo.h"
@@ -850,6 +851,7 @@ int Client::exec()
resman->cleanOrphans();
Party::clearParties();
Net::getNpcHandler()->clearDialogs();
+ Net::getPartyHandler()->clear();
}
mOldState = mState;