# HG changeset patch # User Sam Lantinga # Date 1162133146 0 # Node ID dea73e1d07b0648250b67de17c232c6fdce4ef2e # Parent c9aa6bcb26f332214ca4301c24618e46c943c07d Merged Ryan's fix, in case we need it later. diff -r c9aa6bcb26f3 -r dea73e1d07b0 src/video/Xext/XME/xme.c --- a/src/video/Xext/XME/xme.c Sun Oct 29 04:09:17 2006 +0000 +++ b/src/video/Xext/XME/xme.c Sun Oct 29 14:45:46 2006 +0000 @@ -408,4 +408,14 @@ 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; + } +} + /* vi: set ts=4 sw=4 expandtab: */ diff -r c9aa6bcb26f3 -r dea73e1d07b0 src/video/Xext/extensions/xme.h --- a/src/video/Xext/extensions/xme.h Sun Oct 29 04:09:17 2006 +0000 +++ b/src/video/Xext/extensions/xme.h Sun Oct 29 14:45:46 2006 +0000 @@ -38,5 +38,9 @@ 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 */ /* vi: set ts=4 sw=4 expandtab: */