Skip to content

Commit

Permalink
Fixed bug #144
Browse files Browse the repository at this point in the history
Make sure we don't crash or deadlock if someone tries to free a timer after
the timer subsystem has been shut down.
  • Loading branch information
slouken committed May 9, 2006
1 parent 8afe18f commit 7ff9fc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/timer/SDL_timer.c
Expand Up @@ -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;
Expand Down

0 comments on commit 7ff9fc8

Please sign in to comment.