From 029818ba44703c5151f8d916284e307b05d08fa9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 1 Nov 2013 00:09:32 +0300 Subject: Add configure option --enable-checks for check some calls (disabled by default) Also add configuration listeners removing in objects. --- src/client.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 24ed15987..fa8b860d5 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -768,6 +768,7 @@ Client::~Client() gameClear(); else testsClear(); + CHECKLISTENERS } void Client::bindTextDomain(const char *const name, const char *const path) @@ -810,6 +811,8 @@ void Client::gameClear() logger->log1("Quitting1"); config.removeListeners(this); + eventsManager.shutdown(); + delete setupWindow; setupWindow = nullptr; delete helpWindow; -- cgit v1.2.3-60-g2f50