src/haptic/SDL_haptic.c
changeset 7719 31b5f9ff36ca
parent 7621 5caa5fb3deb6
child 8093 b43765095a6f
equal deleted inserted replaced
7718:213b9777e988 7719:31b5f9ff36ca
   377  */
   377  */
   378 void
   378 void
   379 SDL_HapticQuit(void)
   379 SDL_HapticQuit(void)
   380 {
   380 {
   381     SDL_SYS_HapticQuit();
   381     SDL_SYS_HapticQuit();
   382     if (SDL_haptics != NULL) {
   382     SDL_free(SDL_haptics);
   383         SDL_free(SDL_haptics);
   383     SDL_haptics = NULL;
   384         SDL_haptics = NULL;
       
   385     }
       
   386     SDL_numhaptics = 0;
   384     SDL_numhaptics = 0;
   387 }
   385 }
   388 
   386 
   389 /*
   387 /*
   390  * Returns the number of effects a haptic device has.
   388  * Returns the number of effects a haptic device has.