diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-03-13 17:14:50 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-03-14 13:46:30 -0400 |
commit | 82bce6cc766fafc331c53adb642d5b9d5064075e (patch) | |
tree | d24d126620489680694f5a27c96e8894c1916393 /libs/ardour/midi_ui.cc | |
parent | 543099afbafe83a0bb334f2a016c0d849fe2ca47 (diff) |
call BaseUI::quit() from inside the MIDI Control UI destructor, to properly shutdown its thread
Diffstat (limited to 'libs/ardour/midi_ui.cc')
-rw-r--r-- | libs/ardour/midi_ui.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |