From: Kevin Zhang Date: Sun, 27 May 2018 15:39:10 +0000 (-0400) Subject: properly delete pointers X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=2a6a6e0504d8f3a40ca63f01ff967f9d8a07da7a;p=clyne%2Fentityx.git properly delete pointers --- 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(p16)); void *extrapolated_p24 = p16 + 8 * sizeof(Position); REQUIRE(extrapolated_p24 != static_cast(p24)); + + for (auto ptr : ptrs) delete[] ptr; } TEST_CASE("TestDeconstruct") {