summaryrefslogtreecommitdiff
path: root/src/integrity_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/integrity_unittest.cc')
-rw-r--r--src/integrity_unittest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/integrity_unittest.cc b/src/integrity_unittest.cc
index f52e74ed8..158ce51fc 100644
--- a/src/integrity_unittest.cc
+++ b/src/integrity_unittest.cc
@@ -472,7 +472,7 @@ TEST_CASE("integrity tests", "integrity")
VirtFs::removeZipFromSearchPath("data/test/test.zip");
VirtFs::removeZipFromSearchPath("../data/test/test.zip");
REQUIRE(res != nullptr);
- res->decRef();
+ delete res;
}
SECTION("integrity Loader::getImage test 10")
@@ -488,6 +488,8 @@ TEST_CASE("integrity tests", "integrity")
image->decRef();
}
+ resourceManager->cleanOrphans(true);
+
delete client;
client = nullptr;