mirror of
https://github.com/encounter/SDL.git
synced 2025-05-22 07:11:23 +00:00
Fixes #2417, memory leak in SDL_gamecontroller.c (thanks Leonardo!)
This commit is contained in:
parent
96f09df730
commit
2ed47d8369
@ -1223,6 +1223,7 @@ SDL_GameControllerQuit(void)
|
|||||||
pControllerMap = s_pSupportedControllers;
|
pControllerMap = s_pSupportedControllers;
|
||||||
s_pSupportedControllers = s_pSupportedControllers->next;
|
s_pSupportedControllers = s_pSupportedControllers->next;
|
||||||
SDL_free( pControllerMap->name );
|
SDL_free( pControllerMap->name );
|
||||||
|
SDL_free( pControllerMap->mapping );
|
||||||
SDL_free( pControllerMap );
|
SDL_free( pControllerMap );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user