Make sure we don't crash or deadlock if someone tries to free a timer after
the timer subsystem has been shut down.
This commit is contained in:
Sam Lantinga
2006-05-09 07:16:38 +00:00
parent a731a5eca0
commit 252e8f2a56

View File

@@ -95,6 +95,7 @@ void SDL_TimerQuit(void)
}
if ( SDL_timer_threaded ) {
SDL_DestroyMutex(SDL_timer_mutex);
SDL_timer_mutex = NULL;
}
SDL_timer_started = 0;
SDL_timer_threaded = 0;