mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
testcontroller: fixed memory leak
This commit is contained in:
parent
628d157676
commit
400489c157
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue