Fixed bug #144
authorSam Lantinga <slouken@libsdl.org>
Tue, 09 May 2006 07:16:38 +0000
changeset 1788 e02263385643
parent 1787 15ae67aa6b4b
child 1789 01313c1a2bbe
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
--- 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;