testcontroller: fixed memory leak

This commit is contained in:
Sam Lantinga
2025-09-20 18:21:26 -07:00
parent 628d157676
commit 400489c157

View File

@@ -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);
}
}