summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/map/maplayer_unittest.cc4
-rw-r--r--src/resources/resource.h2
2 files changed, 6 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);
}
diff --git a/src/resources/resource.h b/src/resources/resource.h
index f90890e19..e9f7e0531 100644
--- a/src/resources/resource.h
+++ b/src/resources/resource.h
@@ -110,7 +110,9 @@ class Resource notfinal : public MemoryCounter
{ mDumped = n; }
#endif // DEBUG_DUMP_LEAKS
+#ifndef UNITTESTS
protected:
+#endif // UNITTESTS
/**
* Destructor.
*/