From cca649206931bc3527705b24139cdd4c1bab295a Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 25 Dec 2021 15:02:35 +1100 Subject: [PATCH] [client] audio: call audioDev->free on spice thread exit --- client/src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/main.c b/client/src/main.c index dff10e33..ac182a19 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -778,6 +778,12 @@ int spiceThread(void * arg) break; } + if (g_state.audioDev) + { + g_state.audioDev->free(); + g_state.audioDev = NULL; + } + g_state.state = APP_STATE_SHUTDOWN; return 0; }