summaryrefslogtreecommitdiff
path: root/src/utils/stringutils_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-20 15:51:27 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-20 15:51:27 +0300
commitcf772ab6f9fdfe1647b9b7b79aab685ebc831f31 (patch)
tree25cdb35a8733efe3a4cb90e36cbb89e8e0c24c10 /src/utils/stringutils_unittest.cc
parent80ba4766d8ce9861f6d026e791abc741e3fed0f4 (diff)
downloadManaVerse-cf772ab6f9fdfe1647b9b7b79aab685ebc831f31.tar.gz
ManaVerse-cf772ab6f9fdfe1647b9b7b79aab685ebc831f31.tar.bz2
ManaVerse-cf772ab6f9fdfe1647b9b7b79aab685ebc831f31.tar.xz
ManaVerse-cf772ab6f9fdfe1647b9b7b79aab685ebc831f31.zip
Fix some leaks in unit tests.
Add support for suppression some leaks in asan.
Diffstat (limited to 'src/utils/stringutils_unittest.cc')
-rw-r--r--src/utils/stringutils_unittest.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/stringutils_unittest.cc b/src/utils/stringutils_unittest.cc
index 3354da89c..1356e214b 100644
--- a/src/utils/stringutils_unittest.cc
+++ b/src/utils/stringutils_unittest.cc
@@ -24,6 +24,8 @@
#include "const/utils/utf8.h"
+#include "utils/delete2.h"
+#include "utils/dtor.h"
#include "utils/virtfs.h"
#include "resources/iteminfo.h"
@@ -1485,5 +1487,9 @@ TEST_CASE("stringuntils replaceItemLinks")
REQUIRE(str == "[[test name 1 ,test name2[] test name 1]");
}
ResourceManager::deleteInstance();
+ delete2(logger);
+ delete_all(infos);
+ infos.clear();
+ namedInfos.clear();
// VirtFs::deinit();
}