diff src/video/Xext/XME/xme.c @ 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 ecba4bbaf9c2
children 904defc0792e
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;
+    }
+}
+