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

@ -61,11 +61,11 @@ Console1::~Console1 ()
{
all_lights_out ();
tear_down_gui ();
stop_event_loop ();
MIDISurface::drop ();
tear_down_gui ();
for (const auto& b : buttons) {
delete b.second;
}