src/haptic/SDL_haptic.c
changeset 7719 31b5f9ff36ca
parent 7621 5caa5fb3deb6
child 8093 b43765095a6f
     1.1 --- a/src/haptic/SDL_haptic.c	Thu Aug 29 08:27:25 2013 -0700
     1.2 +++ b/src/haptic/SDL_haptic.c	Thu Aug 29 08:29:21 2013 -0700
     1.3 @@ -379,10 +379,8 @@
     1.4  SDL_HapticQuit(void)
     1.5  {
     1.6      SDL_SYS_HapticQuit();
     1.7 -    if (SDL_haptics != NULL) {
     1.8 -        SDL_free(SDL_haptics);
     1.9 -        SDL_haptics = NULL;
    1.10 -    }
    1.11 +    SDL_free(SDL_haptics);
    1.12 +    SDL_haptics = NULL;
    1.13      SDL_numhaptics = 0;
    1.14  }
    1.15