changeset 2063:dea73e1d07b0

Merged Ryan's fix, in case we need it later.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 29 Oct 2006 14:45:46 +0000
parents c9aa6bcb26f3
children c66852194386
files src/video/Xext/XME/xme.c src/video/Xext/extensions/xme.h
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: */
--- 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: */