Fix memory leaks in unit tests.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
3a2c9f4c61
commit
3e81784f6f
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue