diff options
Diffstat (limited to 'src/gui/windowmanager.cpp')
-rw-r--r-- | src/gui/windowmanager.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index ff060594c..d96d632f0 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -42,6 +42,7 @@ #include "gui/widgets/desktop.h" +#include "utils/delete2.h" #include "utils/files.h" #include "utils/sdlcheckutils.h" #include "utils/sdlhelper.h" @@ -104,6 +105,18 @@ void WindowManager::createWindows() textPopup->postInit(); } +void WindowManager::deleteWindows() +{ + delete2(textPopup); + delete2(beingPopup); + delete2(popupMenu); + delete2(commandHandler); + delete2(didYouKnowWindow); + delete2(helpWindow); + delete2(setupWindow); + delete2(userPalette); +} + void WindowManager::initTitle() { if (settings.options.test.empty()) |