From df76e4417daada4f22cc2ab255dfa378a08a1321 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 1 Aug 2017 16:32:31 +0200 Subject: Fix ATAV GUI property cleanup AutomationTimeAxisView::state_id() requires a stripable (stripable == automatable + parameter OR stripable + control) --- gtk2_ardour/automation_time_axis.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index f65d2282b3..74f4470839 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -313,13 +313,16 @@ AutomationTimeAxisView::AutomationTimeAxisView ( AutomationTimeAxisView::~AutomationTimeAxisView () { - cleanup_gui_properties (); + if (_stripable) { + cleanup_gui_properties (); + } delete _view; } void AutomationTimeAxisView::route_going_away () { + cleanup_gui_properties (); _stripable.reset (); } -- cgit v1.2.3