changeset 1788:e02263385643

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.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 09 May 2006 07:16:38 +0000
parents 15ae67aa6b4b
children 01313c1a2bbe
files src/timer/SDL_timer.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;