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 - Memory leak in X11_GetDisplayBounds
Summary: Memory leak in X11_GetDisplayBounds
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:
Depends on:
Blocks:
 
Reported: 2013-02-20 23:52 UTC by tomaszewski.p
Modified: 2013-02-22 05:45 UTC (History)
1 user (show)

See Also:


Attachments
Patch which fixes memory leak. (511 bytes, patch)
2013-02-20 23:54 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-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