mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-29 06:28:29 +00:00
testcontroller: fixed memory leak
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user