From 85d7d54eed2cad0ddb8009d8dcb64bd69ed4ce85 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Sat, 8 Feb 2025 00:22:34 +0300 Subject: [PATCH] twn_loop.c: quit subsystems --- src/twn_loop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/twn_loop.c b/src/twn_loop.c index 6c4378e..d159065 100644 --- a/src/twn_loop.c +++ b/src/twn_loop.c @@ -731,6 +731,9 @@ static void clean_up(void) { SDL_free(ctx.title); SDL_GL_DeleteContext(ctx.gl_context); SDL_GL_UnloadLibrary(); + SDL_QuitSubSystem(SDL_INIT_EVENTS); + if (ctx.audio_initialized) + SDL_QuitSubSystem(SDL_INIT_AUDIO); SDL_Quit(); }