summaryrefslogtreecommitdiff
path: root/src/unittests/resources/map/maplayer/drawspeciallayer1.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-30 04:35:10 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-30 04:35:10 +0300
commit028120afb03b1acee59fad9a2240f8b80c97bc67 (patch)
tree124d53db3ff1780cdda748c309243886d16d680c /src/unittests/resources/map/maplayer/drawspeciallayer1.cc
parent3bad25f9be2ce5ee41849e2ceab837654b58567d (diff)
downloadplus-028120afb03b1acee59fad9a2240f8b80c97bc67.tar.gz
plus-028120afb03b1acee59fad9a2240f8b80c97bc67.tar.bz2
plus-028120afb03b1acee59fad9a2240f8b80c97bc67.tar.xz
plus-028120afb03b1acee59fad9a2240f8b80c97bc67.zip
Fix memory leaks in unit tests.
Diffstat (limited to 'src/unittests/resources/map/maplayer/drawspeciallayer1.cc')
-rw-r--r--src/unittests/resources/map/maplayer/drawspeciallayer1.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unittests/resources/map/maplayer/drawspeciallayer1.cc b/src/unittests/resources/map/maplayer/drawspeciallayer1.cc
index 79cd056bb..3224eb5ef 100644
--- a/src/unittests/resources/map/maplayer/drawspeciallayer1.cc
+++ b/src/unittests/resources/map/maplayer/drawspeciallayer1.cc
@@ -31,6 +31,8 @@
#include "utils/delete2.h"
#include "utils/env.h"
+#include "resources/resourcemanager/resourcemanager.h"
+
#include "resources/sdlimagehelper.h"
#include "resources/map/map.h"
@@ -379,6 +381,8 @@ TEST_CASE("MapLayer drawSpecialLayer (specialLayer)", "")
delete map;
delete mock;
GraphicsManager::deleteRenderers();
+ ResourceManager::cleanOrphans(true);
+ ResourceManager::deleteInstance();
VirtFs::unmountDirSilent("data");
VirtFs::unmountDirSilent("../data");
delete2(logger);