diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-20 18:32:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-20 18:32:46 +0300 |
commit | 6e2c26e53bda22a10994fe3940fddde7ea548089 (patch) | |
tree | c3746f4fb52f085fbbaaf7d4a92f4ea8cd825581 /src/integrity_unittest.cc | |
parent | cf772ab6f9fdfe1647b9b7b79aab685ebc831f31 (diff) | |
download | plus-6e2c26e53bda22a10994fe3940fddde7ea548089.tar.gz plus-6e2c26e53bda22a10994fe3940fddde7ea548089.tar.bz2 plus-6e2c26e53bda22a10994fe3940fddde7ea548089.tar.xz plus-6e2c26e53bda22a10994fe3940fddde7ea548089.zip |
Fix all left leaks in tests.
Diffstat (limited to 'src/integrity_unittest.cc')
-rw-r--r-- | src/integrity_unittest.cc | 4 |
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; |