diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-09 16:27:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-09 16:27:31 +0300 |
commit | c06debb4683c784f35093af8fc08ca142a58f5de (patch) | |
tree | 8073c846715379d7ee388b88a0cac33e6512df42 /src/net/manaserv | |
parent | c8a5af485ef256446c761409c9947a6ca521bc25 (diff) | |
download | manaverse-c06debb4683c784f35093af8fc08ca142a58f5de.tar.gz manaverse-c06debb4683c784f35093af8fc08ca142a58f5de.tar.bz2 manaverse-c06debb4683c784f35093af8fc08ca142a58f5de.tar.xz manaverse-c06debb4683c784f35093af8fc08ca142a58f5de.zip |
Fix for party memory leak and crash.
Diffstat (limited to 'src/net/manaserv')
-rw-r--r-- | src/net/manaserv/partyhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/manaserv/partyhandler.h | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/net/manaserv/partyhandler.cpp b/src/net/manaserv/partyhandler.cpp index 9a5f19678..0e6af4578 100644 --- a/src/net/manaserv/partyhandler.cpp +++ b/src/net/manaserv/partyhandler.cpp @@ -195,4 +195,8 @@ void PartyHandler::requestPartyMembers() const //chatServerConnection->send(msg); } +void PartyHandler::clear() +{ +} + } // namespace ManaServ diff --git a/src/net/manaserv/partyhandler.h b/src/net/manaserv/partyhandler.h index 7403d0e36..89924c962 100644 --- a/src/net/manaserv/partyhandler.h +++ b/src/net/manaserv/partyhandler.h @@ -76,7 +76,11 @@ public: PartyShare getShareItems() const { return PARTY_SHARE_NO; } - void setShareItems(PartyShare share A_UNUSED) {} + void setShareItems(PartyShare share A_UNUSED) + { } + + void clear(); + private: Party *mParty; }; |