diff --git a/libs/ardour/midi_ui.cc b/libs/ardour/midi_ui.cc index 06940c1e34..97dfdce6bf 100644 --- a/libs/ardour/midi_ui.cc +++ b/libs/ardour/midi_ui.cc @@ -52,7 +52,11 @@ MidiControlUI::MidiControlUI (Session& s) MidiControlUI::~MidiControlUI () { + /* stop the thread */ + quit (); + /* drop all ports as GIO::Sources */ clear_ports (); + /* we no longer exist */ _instance = 0; }