summaryrefslogtreecommitdiff
path: root/src/utils/chatutils_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/chatutils_unittest.cc')
-rw-r--r--src/utils/chatutils_unittest.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/utils/chatutils_unittest.cc b/src/utils/chatutils_unittest.cc
index b28bd94da..f82fa1549 100644
--- a/src/utils/chatutils_unittest.cc
+++ b/src/utils/chatutils_unittest.cc
@@ -106,8 +106,6 @@ TEST_CASE("chatutils replaceVars")
str = "test <SOMETHING>";
replaceVars(str);
REQUIRE(str == "test <SOMETHING>");
-
- delete2(localPlayer);
}
SECTION("player")
@@ -123,8 +121,6 @@ TEST_CASE("chatutils replaceVars")
str = "test <PLAYER>";
replaceVars(str);
REQUIRE(str == "test player1");
-
- delete2(localPlayer);
}
SECTION("monster")
@@ -140,8 +136,6 @@ TEST_CASE("chatutils replaceVars")
str = "test <MONSTER>";
replaceVars(str);
REQUIRE(str == "test monster1");
-
- delete2(localPlayer);
}
SECTION("people")
@@ -239,7 +233,9 @@ TEST_CASE("chatutils replaceVars")
}
delete2(actorManager);
+ delete2(localPlayer);
delete2(client);
+ delete2(logger);
// VirtFs::deinit();
}