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 - Memory leak in XiG XME code...
Summary: Memory leak in XiG XME code...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 1.2.11
Hardware: x86 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-16 19:14 UTC by Ryan C. Gordon
Modified: 2006-10-28 23:33 UTC (History)
0 users

See Also:


Attachments
Fix attempt for XiG leak. (1.33 KB, patch)
2006-10-16 19:15 UTC, Ryan C. Gordon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.