mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 05:06:31 +01:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -146,6 +146,8 @@ GenericMidiControlProtocol::GenericMidiControlProtocol (Session& s)
|
||||||
|
|
||||||
GenericMidiControlProtocol::~GenericMidiControlProtocol ()
|
GenericMidiControlProtocol::~GenericMidiControlProtocol ()
|
||||||
{
|
{
|
||||||
|
set_active (false);
|
||||||
|
|
||||||
if (_input_port) {
|
if (_input_port) {
|
||||||
DEBUG_TRACE (DEBUG::GenericMidi, string_compose ("unregistering input port %1\n", boost::shared_ptr<ARDOUR::Port>(_input_port)->name()));
|
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());
|
Glib::Threads::Mutex::Lock em (AudioEngine::instance()->process_lock());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue