summaryrefslogtreecommitdiff
path: root/src
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
parent36858a520a456dd5de60afcda3a37a03fb51dde4 (diff)
downloadplus-7dd7d00d8206cdf83c6e517044fe598f3a013020.tar.gz
plus-7dd7d00d8206cdf83c6e517044fe598f3a013020.tar.bz2
plus-7dd7d00d8206cdf83c6e517044fe598f3a013020.tar.xz
plus-7dd7d00d8206cdf83c6e517044fe598f3a013020.zip
Fix memory leak after disconnect in spellshortcut.
Diffstat (limited to 'src')
-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