diff options
author | David Robillard <d@drobilla.net> | 2014-12-06 18:42:35 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-06 22:43:06 -0500 |
commit | 89be7ae58ceeb4cd478376a718fc53d288f07710 (patch) | |
tree | 5dfd334dfc2bfa88b97a4c539da88fe0ad0aa3e2 | |
parent | eb86971d2d1a9c0b81f8f7ca2b87aa744be54976 (diff) |
Fix crash on quit when in a non-route time axis.
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 2 | ||||
-rw-r--r-- | 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<Route> rt) RouteTimeAxisView::~RouteTimeAxisView () { - CatchDeletion (this); - for (list<ProcessorAutomationInfo*>::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<GhostRegion*>::iterator i = ghosts.begin(); i != ghosts.end(); ++i) { |