From 385ff3b3e2d2d2c8f31d63da3219eb7c579bd50f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 27 Aug 2025 13:49:57 +0200 Subject: [PATCH] Another fix for pianoroll use-after-free `SessionHandleRef::session_going_away` sets `session = 0;` the timer needs to be disconnected before then. --- gtk2_ardour/pianoroll.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/pianoroll.cc b/gtk2_ardour/pianoroll.cc index 36d1ec9b9b..f1e145f406 100644 --- a/gtk2_ardour/pianoroll.cc +++ b/gtk2_ardour/pianoroll.cc @@ -1883,8 +1883,8 @@ Pianoroll::set_session (ARDOUR::Session* s) void Pianoroll::session_going_away () { - CueEditor::session_going_away (); _update_connection.disconnect (); + CueEditor::session_going_away (); } void