mirror of
https://github.com/love2d/megasource.git
synced 2026-08-19 04:05:09 +02:00
Upgrade to SDL2.0.2 (8393682d9d96d1516831a397290cb34ceb82129f).
This commit is contained in:
@@ -835,6 +835,7 @@ SDL_GameControllerLoadHints()
|
||||
char *pUserMappings = SDL_malloc( nchHints + 1 );
|
||||
char *pTempMappings = pUserMappings;
|
||||
SDL_memcpy( pUserMappings, hint, nchHints );
|
||||
pUserMappings[nchHints] = '\0';
|
||||
while ( pUserMappings ) {
|
||||
char *pchNewLine = NULL;
|
||||
|
||||
@@ -1223,6 +1224,7 @@ SDL_GameControllerQuit(void)
|
||||
pControllerMap = s_pSupportedControllers;
|
||||
s_pSupportedControllers = s_pSupportedControllers->next;
|
||||
SDL_free( pControllerMap->name );
|
||||
SDL_free( pControllerMap->mapping );
|
||||
SDL_free( pControllerMap );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user