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.
--- a/src/timer/SDL_timer.c Tue May 09 07:05:35 2006 +0000
+++ b/src/timer/SDL_timer.c Tue May 09 07:16:38 2006 +0000
@@ -95,6 +95,7 @@
}
if ( SDL_timer_threaded ) {
SDL_DestroyMutex(SDL_timer_mutex);
+ SDL_timer_mutex = NULL;
}
SDL_timer_started = 0;
SDL_timer_threaded = 0;