From 87181710b2a38db3f02cbbb1b7dcbb0fde9729c6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 5 Dec 2023 04:37:39 +0100 Subject: [PATCH] Drop UI shared_ptr references to Transport Masters This allows ARDOUR::cleanup to unregister ports before destroying the Audio Engine. This fixes a crash at exist with JACK since 0786be8. --- gtk2_ardour/transport_masters_dialog.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk2_ardour/transport_masters_dialog.cc b/gtk2_ardour/transport_masters_dialog.cc index 0aa00b0355..1c932ef9f8 100644 --- a/gtk2_ardour/transport_masters_dialog.cc +++ b/gtk2_ardour/transport_masters_dialog.cc @@ -681,6 +681,9 @@ TransportMastersWidget::set_session (ARDOUR::Session* s) if (_session) { _session->config.ParameterChanged.connect (session_config_connection, invalidator (*this), boost::bind (&TransportMastersWidget::param_changed, this, _1), gui_context()); allow_master_select (!_session->config.get_external_sync()); + rebuild (); + } else { + clear (); } }