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 - Memmory leak in SDL_gamecontroller.c
Summary: Memmory leak in SDL_gamecontroller.c
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: HG 2.1
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-23 21:38 UTC by Leonardo
Modified: 2014-02-24 13:00 UTC (History)
1 user (show)

See Also:


Attachments
Free controllerMap mapping. (471 bytes, patch)
2014-02-23 21:38 UTC, Leonardo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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