Fixes #2417, memory leak in SDL_gamecontroller.c (thanks Leonardo!)
authorGabriel Jacobo <gabomdq@gmail.com>
Mon, 24 Feb 2014 10:00:10 -0300
changeset 8246e55dadcb9155
parent 8245 2c63c27c4d1d
child 8247 fd220c4df418
Fixes #2417, memory leak in SDL_gamecontroller.c (thanks Leonardo!)
src/joystick/SDL_gamecontroller.c
     1.1 --- a/src/joystick/SDL_gamecontroller.c	Sun Feb 23 01:24:46 2014 -0500
     1.2 +++ b/src/joystick/SDL_gamecontroller.c	Mon Feb 24 10:00:10 2014 -0300
     1.3 @@ -1223,6 +1223,7 @@
     1.4          pControllerMap = s_pSupportedControllers;
     1.5          s_pSupportedControllers = s_pSupportedControllers->next;
     1.6          SDL_free( pControllerMap->name );
     1.7 +        SDL_free( pControllerMap->mapping );
     1.8          SDL_free( pControllerMap );
     1.9      }
    1.10