Add SDL_GameContrllerClose

Fix memory leak
This commit is contained in:
BeWorld 2023-08-31 12:57:31 +02:00
parent cf68eab8b2
commit c8bf7c82f7

View file

@ -418,6 +418,10 @@ int main(int argc, char *argv[]) {
system_cleanup(); system_cleanup();
platform_video_cleanup(); platform_video_cleanup();
if (gamepad) {
SDL_GameControllerClose(gamepad);
}
if (sdl_path_assets) { if (sdl_path_assets) {
SDL_free(sdl_path_assets); SDL_free(sdl_path_assets);
} }