We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2417

Summary: Memmory leak in SDL_gamecontroller.c
Product: SDL Reporter: Leonardo <leonardo.guilherme>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: gabomdq
Version: HG 2.1   
Hardware: x86_64   
OS: Linux   
Attachments: Free controllerMap mapping.

Description Leonardo 2014-02-23 21:38:29 UTC
Created attachment 1576 [details]
Free controllerMap mapping.

Hello.

SDL_GameControllerQuit() forgets to release memmory for pControllerMap->mapping.

Proposed patch, albeit trivial, fixes this problem.
Comment 1 Gabriel Jacobo 2014-02-24 13:00:42 UTC
Fixed, thanks! https://hg.libsdl.org/SDL/rev/e55dadcb9155