summaryrefslogtreecommitdiff
path: root/src/resources/map/maplayer_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-20 18:32:46 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-20 18:32:46 +0300
commit6e2c26e53bda22a10994fe3940fddde7ea548089 (patch)
treec3746f4fb52f085fbbaaf7d4a92f4ea8cd825581 /src/resources/map/maplayer_unittest.cc
parentcf772ab6f9fdfe1647b9b7b79aab685ebc831f31 (diff)
downloadmanaplus-6e2c26e53bda22a10994fe3940fddde7ea548089.tar.gz
manaplus-6e2c26e53bda22a10994fe3940fddde7ea548089.tar.bz2
manaplus-6e2c26e53bda22a10994fe3940fddde7ea548089.tar.xz
manaplus-6e2c26e53bda22a10994fe3940fddde7ea548089.zip
Fix all left leaks in tests.
Diffstat (limited to 'src/resources/map/maplayer_unittest.cc')
-rw-r--r--src/resources/map/maplayer_unittest.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/map/maplayer_unittest.cc b/src/resources/map/maplayer_unittest.cc
index 5d7f5c258..f2efd49a6 100644
--- a/src/resources/map/maplayer_unittest.cc
+++ b/src/resources/map/maplayer_unittest.cc
@@ -1992,6 +1992,7 @@ TEST_CASE("MapLayer drawSpecialLayer (specialLayer)")
delete map;
delete mock;
+ GraphicsManager::deleteRenderers();
delete2(logger);
}
@@ -2348,6 +2349,7 @@ TEST_CASE("MapLayer drawSpecialLayer (tempLayer)")
delete map;
delete mock;
+ GraphicsManager::deleteRenderers();
delete2(logger);
}
@@ -3231,5 +3233,7 @@ TEST_CASE("MapLayer drawFringe")
delete img2;
delete img3;
delete mock;
+ delete2(theme);
+ GraphicsManager::deleteRenderers();
delete2(logger);
}