From fb406e5b36bfd7f5dcf8650be911c9202ae3c323 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 5 Dec 2014 20:50:32 +0100 Subject: fix small memory leak in the tests --- libs/ardour/test/automation_list_property_test.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/ardour/test/automation_list_property_test.cc') 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 */ -- cgit v1.2.3