diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c index 35b87c89b..d03c7a4d4 100644 --- a/src/joystick/SDL_joystick.c +++ b/src/joystick/SDL_joystick.c @@ -1036,6 +1036,7 @@ SDL_JoystickClose(SDL_Joystick *joystick) SDL_free(touchpad->fingers); } SDL_free(joystick->touchpads); + SDL_free(joystick->sensors); SDL_free(joystick); SDL_UnlockJoysticks();