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 1736 - Memory leak in X11_InitModes
Summary: Memory leak in X11_InitModes
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
: 1735 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-02-27 05:35 UTC by tomaszewski.p
Modified: 2013-03-01 01:21 UTC (History)
0 users

See Also:


Attachments
Patch which fixes mentioned memory leaks. (1.17 KB, patch)
2013-02-27 05:35 UTC, tomaszewski.p
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tomaszewski.p 2013-02-27 05:35:38 UTC
Created attachment 1055 [details]
Patch which fixes mentioned memory leaks.

XRRListOutputProperties allocates Atom* array, which is not freed.
XRRGetOutputProperty allocates 'unsigned char *prop' array, which is not freed.
Comment 1 Ryan C. Gordon 2013-02-27 20:21:40 UTC
*** Bug 1735 has been marked as a duplicate of this bug. ***
Comment 2 Sam Lantinga 2013-03-01 01:21:18 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/142dcc136188