From 89be7ae58ceeb4cd478376a718fc53d288f07710 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 6 Dec 2014 18:42:35 -0500 Subject: [PATCH] Fix crash on quit when in a non-route time axis. --- gtk2_ardour/route_time_axis.cc | 2 -- gtk2_ardour/time_axis_view.cc | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 0e71f858a4..ae75087d19 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -323,8 +323,6 @@ RouteTimeAxisView::set_route (boost::shared_ptr rt) RouteTimeAxisView::~RouteTimeAxisView () { - CatchDeletion (this); - for (list::iterator i = processor_automation.begin(); i != processor_automation.end(); ++i) { delete *i; } diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc index 9cba0bbac3..dc4b491c4a 100644 --- a/gtk2_ardour/time_axis_view.cc +++ b/gtk2_ardour/time_axis_view.cc @@ -219,6 +219,8 @@ TimeAxisView::TimeAxisView (ARDOUR::Session* sess, PublicEditor& ed, TimeAxisVie TimeAxisView::~TimeAxisView() { + CatchDeletion (this); + in_destructor = true; for (list::iterator i = ghosts.begin(); i != ghosts.end(); ++i) {