# HG changeset patch # User Sam Lantinga # Date 1147158998 0 # Node ID e022633856434601f1751ed286f063c191f55593 # Parent 15ae67aa6b4bc0ffe82e2f75012c3ecccfdcc34d 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. diff -r 15ae67aa6b4b -r e02263385643 src/timer/SDL_timer.c --- 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;