diff options
author | Robin Gareus <robin@gareus.org> | 2014-12-05 20:50:32 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-12-05 20:57:07 +0100 |
commit | fb406e5b36bfd7f5dcf8650be911c9202ae3c323 (patch) | |
tree | 9ccde527d727c5a56e1d2b19e3c6b4fd115c0306 | |
parent | 8714fab1bcec70383e8c3a1b461df4943fcf7b94 (diff) |
fix small memory leak in the tests
-rw-r--r-- | libs/ardour/test/automation_list_property_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/test/automation_list_property_test.cc b/libs/ardour/test/automation_list_property_test.cc index 5bfdff3b89..7206ee8220 100644 --- a/libs/ardour/test/automation_list_property_test.cc +++ b/libs/ardour/test/automation_list_property_test.cc @@ -84,10 +84,12 @@ AutomationListPropertyTest::basicTest () property->add (5, 6, false, false); property->add (7, 8, false, false); CPPUNIT_ASSERT_EQUAL (true, property.changed()); + delete foo; foo = new XMLNode ("test"); property.get_changes_as_xml (foo); write_automation_list_xml (foo, test_data_filename); check_xml (foo, test_data_file2, ignore_properties); + delete foo; } /** Here's a StatefulDestructible class that has a AutomationListProperty */ |