소스 검색

testcontroller: fixed memory leak

Sam Lantinga 23 시간 전
부모
커밋
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);
     }
 }