explicitly shutdown engine at exit

Callbacks like EngineHalted or DeviceListChanged 
can be deadly while the UI is being torn down.
This commit is contained in:
Robin Gareus 2015-03-09 01:41:34 +01:00
parent 72ed785940
commit c12b7bc9d8

View file

@ -301,6 +301,7 @@ int main (int argc, char *argv[])
}
ui->run (text_receiver);
ui->disconnect_from_engine();
Gtkmm2ext::Application::instance()->cleanup();
delete ui;
ui = 0;