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

This commit is contained in:
Deukhoofd 2019-11-17 10:42:09 +01:00
parent 3a2c9f4c61
commit 3e81784f6f
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
2 changed files with 2 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}