Windows: Fixed not removing the always added hint callback on quit.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 16 Oct 2016 22:47:37 +0200
changeset 10546af893e219e08
parent 10545 017eb6694a92
child 10547 2677cd82ad85
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
     1.1 --- a/src/timer/windows/SDL_systimer.c	Sun Oct 16 22:46:56 2016 +0200
     1.2 +++ b/src/timer/windows/SDL_systimer.c	Sun Oct 16 22:47:37 2016 +0200
     1.3 @@ -107,10 +107,8 @@
     1.4  void
     1.5  SDL_TicksQuit(void)
     1.6  {
     1.7 -    if (!hires_timer_available) {
     1.8 -        SDL_DelHintCallback(SDL_HINT_TIMER_RESOLUTION,
     1.9 -                            SDL_TimerResolutionChanged, NULL);
    1.10 -    }
    1.11 +    SDL_DelHintCallback(SDL_HINT_TIMER_RESOLUTION,
    1.12 +                        SDL_TimerResolutionChanged, NULL);
    1.13  
    1.14      SDL_SetSystemTimerResolution(0);  /* always release our timer resolution request. */
    1.15