Fixes #2417, memory leak in SDL_gamecontroller.c (thanks Leonardo!)
This commit is contained in:
parent
08107940e9
commit
ac487a8eec
1 changed files with 1 additions and 0 deletions
|
@ -1223,6 +1223,7 @@ SDL_GameControllerQuit(void)
|
|||
pControllerMap = s_pSupportedControllers;
|
||||
s_pSupportedControllers = s_pSupportedControllers->next;
|
||||
SDL_free( pControllerMap->name );
|
||||
SDL_free( pControllerMap->mapping );
|
||||
SDL_free( pControllerMap );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue