Fix memory leaks in unit tests.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
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…
x
Reference in New Issue
Block a user