浏览代码

testcontroller: fixed memory leak

Sam Lantinga 21 小时之前
父节点
当前提交
400489c157
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      test/gamepadutils.c

+ 1 - 0
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);
     }
 }