Fix memory leak in ArraysTestCase unit test.
Clear the items in PTR array explicitly, this is not done by the array itself. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
bffc6bc753
commit
86e587a096
1 changed files with 1 additions and 0 deletions
|
|
@ -724,6 +724,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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue