mirror of
https://github.com/phoboslab/wipeout-rewrite
synced 2024-12-26 09:59:04 +01:00
Add SDL_GameContrllerClose
Fix memory leak
This commit is contained in:
parent
cf68eab8b2
commit
c8bf7c82f7
1 changed files with 4 additions and 0 deletions
|
@ -418,6 +418,10 @@ int main(int argc, char *argv[]) {
|
|||
system_cleanup();
|
||||
platform_video_cleanup();
|
||||
|
||||
if (gamepad) {
|
||||
SDL_GameControllerClose(gamepad);
|
||||
}
|
||||
|
||||
if (sdl_path_assets) {
|
||||
SDL_free(sdl_path_assets);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue