summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-17 14:58:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-17 14:58:51 +0300
commit294f449c2f2819971ce9528c9557fc3be8cd4ed1 (patch)
tree1ac28965cc88b0d1f71528e77b1bf11dfdd60e83 /src/client.cpp
parent5fc6dccf5c22f7245d03094fab908e1afb2b22b8 (diff)
downloadmanaverse-294f449c2f2819971ce9528c9557fc3be8cd4ed1.tar.gz
manaverse-294f449c2f2819971ce9528c9557fc3be8cd4ed1.tar.bz2
manaverse-294f449c2f2819971ce9528c9557fc3be8cd4ed1.tar.xz
manaverse-294f449c2f2819971ce9528c9557fc3be8cd4ed1.zip
Move windows deletion into windowmanager.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 342f24f14..c52468563 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -601,14 +601,7 @@ void Client::gameClear()
config.removeListeners(this);
eventsManager.shutdown();
-
- delete2(setupWindow);
- delete2(helpWindow);
- delete2(didYouKnowWindow);
- delete2(commandHandler);
- delete2(popupMenu);
- delete2(beingPopup);
- delete2(textPopup);
+ WindowManager::deleteWindows();
stopTimers();
@@ -694,7 +687,6 @@ void Client::gameClear()
if (logger)
logger->log1("Quitting9");
- delete2(userPalette);
delete2(joystick);
keyboard.deinit();