From 777947afaeb8b7eeafdca3ba130c1bccd47e789b Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Fri, 9 Jan 2015 18:23:16 -0800 Subject: [PATCH] still have to free this text --- arch/sdl/joy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sdl/joy.c b/arch/sdl/joy.c index 3258e4c2..00cc2283 100644 --- a/arch/sdl/joy.c +++ b/arch/sdl/joy.c @@ -246,6 +246,8 @@ void joy_close() SDL_JoystickClose(SDL_Joysticks[--num_joysticks].handle); while (Joystick.n_axes--) d_free(joyaxis_text[Joystick.n_axes]); + while (Joystick.n_buttons--) + d_free(key_text[KEY_JB1 + Joystick.n_buttons]); } void joy_get_pos(int *x, int *y) -- 2.39.2