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

@ -189,8 +189,8 @@ LaunchPadPro::~LaunchPadPro ()
p.second.timeout_connection.disconnect ();
}
stop_event_loop ();
tear_down_gui ();
stop_event_loop ();
MIDISurface::drop ();