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:
Robin Gareus 2024-07-11 19:19:21 +02:00
parent 676b372ac5
commit fa6fbbf810
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
5 changed files with 8 additions and 6 deletions

View file

@ -138,7 +138,6 @@ OSC::~OSC()
{
tick = false;
stop ();
tear_down_gui ();
_instance = 0;
}
@ -315,6 +314,8 @@ OSC::thread_init ()
int
OSC::stop ()
{
tear_down_gui ();
periodic_connection.disconnect ();
session_connections.drop_connections ();