summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-09 18:46:12 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-09 18:46:12 +0300
commit36858a520a456dd5de60afcda3a37a03fb51dde4 (patch)
tree8ebdf2a19a578a4ac1cf3c15831a15cd95880312 /src/client.cpp
parent58ff96ae10908ce63b230074b26e2db10b9cc22d (diff)
downloadmv-36858a520a456dd5de60afcda3a37a03fb51dde4.tar.gz
mv-36858a520a456dd5de60afcda3a37a03fb51dde4.tar.bz2
mv-36858a520a456dd5de60afcda3a37a03fb51dde4.tar.xz
mv-36858a520a456dd5de60afcda3a37a03fb51dde4.zip
Fix memory leak after disconnect in spellsmanager.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index d0abd144b..39bdc7223 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1232,6 +1232,7 @@ int Client::gameExec()
TranslationManager::loadCurrentLang();
PlayerInfo::stateChange(mState);
+ delete spellManager;
spellManager = new SpellManager;
spellShortcut = new SpellShortcut;