mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Fix ctrl surface shutdown sequence
Tear down GUI before stopping event loop, this fixes a crash on windows (and perhaps a rare crash on other OS).
This commit is contained in:
parent
676b372ac5
commit
fa6fbbf810
5 changed files with 8 additions and 6 deletions
|
|
@ -167,7 +167,6 @@ GenericMidiControlProtocol::~GenericMidiControlProtocol ()
|
|||
}
|
||||
|
||||
drop_all ();
|
||||
tear_down_gui ();
|
||||
}
|
||||
|
||||
list<std::shared_ptr<ARDOUR::Bundle> >
|
||||
|
|
@ -300,6 +299,7 @@ GenericMidiControlProtocol::do_request (GenericMIDIRequest* req)
|
|||
int
|
||||
GenericMidiControlProtocol::stop ()
|
||||
{
|
||||
tear_down_gui ();
|
||||
BaseUI::quit ();
|
||||
|
||||
return 0;
|
||||
|
|
@ -328,6 +328,7 @@ GenericMidiControlProtocol::set_active (bool yn)
|
|||
if (yn) {
|
||||
BaseUI::run ();
|
||||
} else {
|
||||
tear_down_gui ();
|
||||
BaseUI::quit ();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue