diff options
author | Kevin Zhang <kzhaaang@gmail.com> | 2018-05-27 11:39:10 -0400 |
---|---|---|
committer | Kevin Zhang <kzhaaang@gmail.com> | 2018-05-27 11:39:10 -0400 |
commit | 2a6a6e0504d8f3a40ca63f01ff967f9d8a07da7a (patch) | |
tree | 49342cda5d07f6a02095297916b9685590322f98 | |
parent | 907c55bb6a56ba4d5f1a520fe0aa70a83a792114 (diff) |
properly delete pointers
-rw-r--r-- | entityx/help/Pool_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/entityx/help/Pool_test.cc b/entityx/help/Pool_test.cc index 56ca85a..631ccec 100644 --- a/entityx/help/Pool_test.cc +++ b/entityx/help/Pool_test.cc @@ -64,6 +64,8 @@ TEST_CASE("TestPoolPointers") { REQUIRE(extrapolated_p16 != static_cast<void*>(p16)); void *extrapolated_p24 = p16 + 8 * sizeof(Position); REQUIRE(extrapolated_p24 != static_cast<void*>(p24)); + + for (auto ptr : ptrs) delete[] ptr; } TEST_CASE("TestDeconstruct") { |