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 1609

Summary: XSizeHints shouldn't be statically allocated
Product: SDL Reporter: Edward Rudd <urkle>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2 CC: icculus
Version: HG 2.0   
Hardware: All   
OS: Linux   
Attachments: patch to allocate Hint structures per Xlib docs.

Description Edward Rudd 2012-09-25 16:20:02 UTC
According to the X documentation the XSizeHints structure should not be statically allocated (as it is in X11_CreateWindow), but rather dynamically allocated using the XAllocSizeHints() method.

http://www.x.org/releases/X11R7.6/doc/libX11/specs/libX11/libX11.html#Setting_and_Reading_the_WM_NORMAL_HINTS_Property
Comment 1 Edward Rudd 2012-09-25 19:11:03 UTC
Created attachment 957 [details]
patch to allocate Hint structures per Xlib docs.
Comment 2 Ryan C. Gordon 2012-09-26 11:11:29 UTC
This patch is now hg changeset 5e09ac1aba80, thanks!

--ryan.