summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/windowmanager_unittest.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windowmanager_unittest.cc b/src/gui/windowmanager_unittest.cc
index 871b23c84..a7b73c598 100644
--- a/src/gui/windowmanager_unittest.cc
+++ b/src/gui/windowmanager_unittest.cc
@@ -138,8 +138,7 @@ TEST_CASE("Windows tests", "windowmanager")
XML::initXML();
SDL_Init(SDL_INIT_VIDEO);
logger = new Logger();
- delete resourceManager;
- resourceManager = nullptr;
+ ResourceManager::deleteInstance();
ResourceManager::init();
resourceManager->cleanOrphans(true);
VirtFs::addDirToSearchPathSilent("data", Append_false);
@@ -703,6 +702,8 @@ TEST_CASE("Windows tests", "windowmanager")
delete2(inventoryHandler);
delete2(charServerHandler);
delete2(playerHandler);
+ delete2(gui);
+ ResourceManager::deleteInstance();
VirtFs::removeDirFromSearchPathSilent("data");
VirtFs::removeDirFromSearchPathSilent("../data");
VirtFs::removeDirFromSearchPathSilent("data/test");