Skip to content

Commit

Permalink
Fixes #2417, memory leak in SDL_gamecontroller.c (thanks Leonardo!)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabomdq committed Feb 24, 2014
1 parent 96f09df commit 2ed47d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/joystick/SDL_gamecontroller.c
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 2ed47d8

Please sign in to comment.