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