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 345

Summary: Memory leak in XiG XME code...
Product: SDL Reporter: Ryan C. Gordon <icculus>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.11   
Hardware: x86   
OS: Linux   
Attachments: Fix attempt for XiG leak.

Description Ryan C. Gordon 2006-10-16 19:14:45 UTC
src/video/Xext/XME/xme.c allocates an XExtensionInfo object in XiGMiscFindDisplay() (which is obfuscated in an Xlib macro), and never deallocates it.

--ryan.
Comment 1 Ryan C. Gordon 2006-10-16 19:15:48 UTC
Created attachment 172 [details]
Fix attempt for XiG leak.


I'm not sure this is the best approach, but this patch closes the leak. SDL 1.2 only at the moment.

--ryan.
Comment 2 Ryan C. Gordon 2006-10-16 19:23:42 UTC
Tossing bug to Sam.

--ryan.

Comment 3 Ryan C. Gordon 2006-10-28 23:33:22 UTC
(I applied this to Subversion, revision #2887.)

--ryan.