From 4872d6706d36d1d24c3b3b41fe1b39c848712329 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 5 Jun 2024 16:37:13 -0600 Subject: [PATCH] fix crash cause by ending non-existing track drag --- gtk2_ardour/editor.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 660e5d734a..c226c14089 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -7103,6 +7103,10 @@ Editor::mid_track_drag (GdkEventMotion* ev, Gtk::Widget& w) void Editor::end_track_drag () { + if (!track_drag) { + return; + } + if (track_drag->have_predrag_cursor) { gdk_window_set_cursor (edit_controls_vbox.get_toplevel()->get_window()->gobj(), track_drag->predrag_cursor); }