Merged Ryan's fix, in case we need it later.
authorSam Lantinga <slouken@libsdl.org>
Sun, 29 Oct 2006 14:45:46 +0000
changeset 2063 dea73e1d07b0
parent 2062 c9aa6bcb26f3
child 2064 c66852194386
Merged Ryan's fix, in case we need it later.
src/video/Xext/XME/xme.c
src/video/Xext/extensions/xme.h
--- 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: */