Fix memory leaks in unit tests.
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2019-11-17 10:42:09 +01:00
1 parent 3a2c9f4c61
commit 3e81784f6f
2 files changed
+2

No files matched your search

@@ -82,6 +82,7 @@ TEST_CASE( "Add two scripts to script set, then remove them", "[Battling, Script
auto it = set.GetIterator();
REQUIRE(it->at(0)->GetName() == "foobar2");
delete s;
delete s2;
}
@@ -97,6 +97,7 @@ TEST_CASE( "Script source with multiple item script set.", "[Battling, Scripting
CHECK(second != nullptr);
CHECK (second->GetName() == "foobar2");
delete s;
delete s2;
}