FP8: tear down GUI before terminating event loop
This fixes an issue on Windows, where UI::run can dispatch a signal that ends up via cross-thread channel at the surfaces' BaseUI::request_handler. causing a segfault.
This commit is contained in:
parent
c3d90f415c
commit
676b372ac5
@ -244,8 +244,6 @@ FaderPort8::~FaderPort8 ()
|
||||
AudioEngine::instance()->unregister_port (_output_port);
|
||||
_output_port.reset ();
|
||||
}
|
||||
|
||||
tear_down_gui ();
|
||||
}
|
||||
|
||||
/* ****************************************************************************
|
||||
@ -266,6 +264,7 @@ FaderPort8::do_request (FaderPort8Request* req)
|
||||
void
|
||||
FaderPort8::stop ()
|
||||
{
|
||||
tear_down_gui ();
|
||||
DEBUG_TRACE (DEBUG::FaderPort8, "BaseUI::quit ()\n");
|
||||
BaseUI::quit ();
|
||||
close (); // drop references, disconnect from session signals
|
||||
|
Loading…
Reference in New Issue
Block a user