From e61670a657a9d98f801f57f0d97c2e3a739a3d5c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 3 Mar 2025 18:25:21 +0100 Subject: [PATCH] Properly drop Pianoroll references --- gtk2_ardour/pianoroll.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk2_ardour/pianoroll.cc b/gtk2_ardour/pianoroll.cc index 4548d53521..6c86b376ec 100644 --- a/gtk2_ardour/pianoroll.cc +++ b/gtk2_ardour/pianoroll.cc @@ -2236,6 +2236,8 @@ Pianoroll::set_region (std::shared_ptr r) view->show_start (true); view->show_end (true); + r->DropReferences.connect (object_connections, invalidator (*this), std::bind (&Pianoroll::unset, this), gui_context()); + bool provided = false; std::shared_ptr map; std::shared_ptr smf (std::dynamic_pointer_cast (r->midi_source()));