소스 검색

Fixes #2417, memory leak in SDL_gamecontroller.c (thanks Leonardo!)

Gabriel Jacobo 11 년 전
부모
커밋
2ed47d8369
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/joystick/SDL_gamecontroller.c

+ 1 - 0
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 );
     }