summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-27 18:41:30 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-27 18:41:30 +0300
commit26dea46cf8ebcd22c62810bd9c866e7e7e2b6cb2 (patch)
tree5e6ecf428f1716082214db65928848a849f9d109 /src/game.cpp
parent96ca346fe114804609acea0b13594422f3f09002 (diff)
downloadManaVerse-26dea46cf8ebcd22c62810bd9c866e7e7e2b6cb2.tar.gz
ManaVerse-26dea46cf8ebcd22c62810bd9c866e7e7e2b6cb2.tar.bz2
ManaVerse-26dea46cf8ebcd22c62810bd9c866e7e7e2b6cb2.tar.xz
ManaVerse-26dea46cf8ebcd22c62810bd9c866e7e7e2b6cb2.zip
Fix memory leaks in guildmanager.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index c933378e6..6a3a63bb6 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -299,6 +299,9 @@ static void destroyGuiWindows()
if (whoIsOnline)
whoIsOnline->setAllowUpdate(false);
+ if (guildManager)
+ guildManager->clear();
+
del_0(windowMenu);
del_0(localChatTab) // Need to do this first, so it can remove itself
del_0(debugChatTab)