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

Summary: Memory leak in X11_InitModes
Product: SDL Reporter: tomaszewski.p
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Linux   
Attachments: Patch which fixes mentioned memory leaks.

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