diff --git a/src/SDL.c b/src/SDL.c index 59602d623..643b5ca70 100644 --- a/src/SDL.c +++ b/src/SDL.c @@ -505,6 +505,8 @@ SDL_Quit(void) */ SDL_memset( SDL_SubsystemRefCount, 0x0, sizeof(SDL_SubsystemRefCount) ); + SDL_TLSCleanup(); + SDL_bInMainQuit = SDL_FALSE; }