summaryrefslogtreecommitdiff
path: root/src/integrity_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/integrity_unittest.cc
parentcf772ab6f9fdfe1647b9b7b79aab685ebc831f31 (diff)
downloadmanaverse-6e2c26e53bda22a10994fe3940fddde7ea548089.tar.gz
manaverse-6e2c26e53bda22a10994fe3940fddde7ea548089.tar.bz2
manaverse-6e2c26e53bda22a10994fe3940fddde7ea548089.tar.xz
manaverse-6e2c26e53bda22a10994fe3940fddde7ea548089.zip
Fix all left leaks in tests.
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;