diff --git a/test/gamepadutils.c b/test/gamepadutils.c index 7cc401134b..9a86130495 100644 --- a/test/gamepadutils.c +++ b/test/gamepadutils.c @@ -926,6 +926,7 @@ void DestroyGamepadImage(GamepadImage *ctx) SDL_DestroyTexture(ctx->touchpad_texture); SDL_DestroyTexture(ctx->button_texture); SDL_DestroyTexture(ctx->axis_texture); + SDL_free(ctx->fingers); SDL_free(ctx); } }