diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c index a9fe3276a..51ce040ca 100644 --- a/src/joystick/SDL_gamecontroller.c +++ b/src/joystick/SDL_gamecontroller.c @@ -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 ); }