Skip to content

Commit

Permalink
Fix mismatched new[]/delete in a test case.
Browse files Browse the repository at this point in the history
Use wxDELETEA() as the comment said we did -- except that we didn't.
  • Loading branch information
vadz committed Jun 19, 2015
1 parent 6f2fdba commit 893102b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/misc/misctests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void MiscTestCase::Delete()
CPPUNIT_ASSERT( array != NULL );

// Check that wxDELETEA sets the pointer to NULL:
wxDELETE( array );
wxDELETEA( array );
CPPUNIT_ASSERT( array == NULL );

// this results in compilation error, as it should
Expand Down

0 comments on commit 893102b

Please sign in to comment.