Parcourir la source

testcontroller: fixed memory leak

Sam Lantinga il y a 1 jour
Parent
commit
400489c157
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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);
     }
 }