From 252e8f2a568e58eb53d449a4d6a29c5f56147d67 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 9 May 2006 07:16:38 +0000 Subject: [PATCH] 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. --- src/timer/SDL_timer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/timer/SDL_timer.c b/src/timer/SDL_timer.c index 353b19fd7..2c98431ac 100644 --- a/src/timer/SDL_timer.c +++ b/src/timer/SDL_timer.c @@ -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;