summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-09 19:11:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-09 19:11:31 +0300
commit7dd7d00d8206cdf83c6e517044fe598f3a013020 (patch)
tree9e3a3314e11dd58bfa81539c852b10e98c9e985d /src/client.cpp
parent36858a520a456dd5de60afcda3a37a03fb51dde4 (diff)
downloadmv-7dd7d00d8206cdf83c6e517044fe598f3a013020.tar.gz
mv-7dd7d00d8206cdf83c6e517044fe598f3a013020.tar.bz2
mv-7dd7d00d8206cdf83c6e517044fe598f3a013020.tar.xz
mv-7dd7d00d8206cdf83c6e517044fe598f3a013020.zip
Fix memory leak after disconnect in spellshortcut.
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 39bdc7223..b19d06bb0 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1234,6 +1234,7 @@ int Client::gameExec()
delete spellManager;
spellManager = new SpellManager;
+ delete spellShortcut;
spellShortcut = new SpellShortcut;
// Load XML databases