mirror of
https://github.com/yawut/SDL.git
synced 2026-08-20 07:44:03 -05:00
Fixed bug #144
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user