From f31ce3fb3385ff6d6140e2f921bf41b5fcd6ad0d Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sun, 16 Oct 2016 22:47:37 +0200 Subject: [PATCH] Windows: Fixed not removing the always added hint callback on quit. This was no real problem because SDL_Quit() also calls SDL_ClearHints(). --- src/timer/windows/SDL_systimer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/timer/windows/SDL_systimer.c b/src/timer/windows/SDL_systimer.c index d2d30c8da..5c9121a51 100644 --- a/src/timer/windows/SDL_systimer.c +++ b/src/timer/windows/SDL_systimer.c @@ -107,10 +107,8 @@ SDL_TicksInit(void) void SDL_TicksQuit(void) { - if (!hires_timer_available) { - SDL_DelHintCallback(SDL_HINT_TIMER_RESOLUTION, - SDL_TimerResolutionChanged, NULL); - } + SDL_DelHintCallback(SDL_HINT_TIMER_RESOLUTION, + SDL_TimerResolutionChanged, NULL); SDL_SetSystemTimerResolution(0); /* always release our timer resolution request. */