Mercurial > sdl-ios-xcode
changeset 3885:a10bddfdc40f SDL-1.2
Closing minor memory leak in XME code.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sun, 29 Oct 2006 02:46:42 +0000 |
parents | dba874934f0c |
children | 36f155ec8133 |
files | src/video/Xext/XME/xme.c src/video/Xext/extensions/xme.h src/video/x11/SDL_x11video.c |
diffstat | 3 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/Xext/XME/xme.c Fri Oct 27 20:18:24 2006 +0000 +++ b/src/video/Xext/XME/xme.c Sun Oct 29 02:46:42 2006 +0000 @@ -393,3 +393,13 @@ return (rep.success ? xTrue : xFalse); } + +/* SDL addition from Ryan: free memory used by xme. */ +void XiGMiscDestroy(void) +{ + if (xigmisc_info) { + XextDestroyExtension(xigmisc_info); + xigmisc_info = NULL; + } +} +
--- a/src/video/Xext/extensions/xme.h Fri Oct 27 20:18:24 2006 +0000 +++ b/src/video/Xext/extensions/xme.h Sun Oct 29 02:46:42 2006 +0000 @@ -36,6 +36,10 @@ XiGMiscResolutionInfo **presolutions); extern void XiGMiscChangeResolution(Display *dpy, int screen, int view, int width, int height, int refresh); + +/* SDL addition from Ryan: free memory used by xme. */ +extern void XiGMiscDestroy(void); + #endif /* _XME_H_INCLUDED */