From f29e5ebf2628eb4f1aa2975b02959ddafd67a62c Mon Sep 17 00:00:00 2001 From: James R Date: Mon, 27 Apr 2020 18:03:10 -0700 Subject: [PATCH] Wait for threads before SDL_Quit (lol) --- src/sdl/i_system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 9cb6cbe61..ec4111f61 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -3031,7 +3031,7 @@ INT32 I_StartupSystem(void) SDL_GetVersion(&SDLlinked); #ifdef HAVE_THREADS I_start_threads(); - atexit(I_stop_threads); + I_AddExitFunc(I_stop_threads); #endif I_StartupConsole(); I_OutputMsg("Compiled for SDL version: %d.%d.%d\n",