diff --git a/tests/arrays/arrays.cpp b/tests/arrays/arrays.cpp index 0ac0ec195f..44fbf77145 100644 --- a/tests/arrays/arrays.cpp +++ b/tests/arrays/arrays.cpp @@ -713,6 +713,7 @@ void ArraysTestCase::TestSTL() items.push_back(new Item(17)); CPPUNIT_ASSERT_EQUAL( 17, (*(items.rbegin()))->n ); CPPUNIT_ASSERT_EQUAL( 17, (**items.begin()).n ); + WX_CLEAR_ARRAY(items); } void ArraysTestCase::IndexFromEnd()