From 3db999ff2d3324ffad6ba6a469ca224c8d864dc3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 28 Aug 2013 22:45:19 +0300 Subject: add some more missing checks. --- src/client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 974853279..7ff47e506 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -755,9 +755,11 @@ void Client::gameClear() logger->log1("Quitting1"); config.removeListeners(this); - userPalette = nullptr; + delete setupWindow; setupWindow = nullptr; + delete helpWindow; helpWindow = nullptr; + delete didYouKnowWindow; didYouKnowWindow = nullptr; SDL_RemoveTimer(mLogicCounterId); -- cgit v1.2.3-70-g09d2