Skip to content

Commit

Permalink
5363 - Memory leak of joystick->sensors in SDL_JoystickClose
Browse files Browse the repository at this point in the history
Mathieu Eyraud

Joystick->sensors is never freed.
  • Loading branch information
slouken committed Nov 24, 2020
1 parent 34bea84 commit feab9d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/joystick/SDL_joystick.c
Expand Up @@ -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();
Expand Down

0 comments on commit feab9d4

Please sign in to comment.