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 1726

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

Description tomaszewski.p 2013-02-20 23:52:56 UTC
According to http://linux.die.net/man/3/xineramaqueryscreens :
The pointer returned should be released with xfree(3) when no longer needed. 

Attached patched fixes the issue.
Comment 1 tomaszewski.p 2013-02-20 23:54:07 UTC
Created attachment 1050 [details]
Patch which fixes memory leak.
Comment 2 Gabriel Jacobo 2013-02-22 05:45:43 UTC
Thanks! http://hg.libsdl.org/SDL/rev/85ac6fbdf171