Fix crash when disabling generic MIDI surface
The event-loop has to be stopped before unregistering ports and deleting the instance.
This commit is contained in:
parent
d0b490d1b7
commit
9a34d15b3c
@ -146,6 +146,8 @@ GenericMidiControlProtocol::GenericMidiControlProtocol (Session& s)
|
||||
|
||||
GenericMidiControlProtocol::~GenericMidiControlProtocol ()
|
||||
{
|
||||
set_active (false);
|
||||
|
||||
if (_input_port) {
|
||||
DEBUG_TRACE (DEBUG::GenericMidi, string_compose ("unregistering input port %1\n", boost::shared_ptr<ARDOUR::Port>(_input_port)->name()));
|
||||
Glib::Threads::Mutex::Lock em (AudioEngine::instance()->process_lock());
|
||||
|
Loading…
Reference in New Issue
Block a user