From 400489c157d1d05e4dfe9abffe9f1f640aa3c044 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 20 Sep 2025 18:21:26 -0700 Subject: [PATCH] testcontroller: fixed memory leak --- test/gamepadutils.c | 1 + 1 file changed, 1 insertion(+) 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); } }