Merged Ryan's fix, in case we need it later.
authorSam Lantinga <slouken@libsdl.org>
Sun, 29 Oct 2006 14:45:46 +0000
changeset 2063dea73e1d07b0
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
     1.1 --- a/src/video/Xext/XME/xme.c	Sun Oct 29 04:09:17 2006 +0000
     1.2 +++ b/src/video/Xext/XME/xme.c	Sun Oct 29 14:45:46 2006 +0000
     1.3 @@ -408,4 +408,14 @@
     1.4      return (rep.success ? xTrue : xFalse);
     1.5  }
     1.6  
     1.7 +/* SDL addition from Ryan: free memory used by xme. */
     1.8 +void
     1.9 +XiGMiscDestroy(void)
    1.10 +{
    1.11 +    if (xigmisc_info) {
    1.12 +        XextDestroyExtension(xigmisc_info);
    1.13 +        xigmisc_info = NULL;
    1.14 +    }
    1.15 +}
    1.16 +
    1.17  /* vi: set ts=4 sw=4 expandtab: */
     2.1 --- a/src/video/Xext/extensions/xme.h	Sun Oct 29 04:09:17 2006 +0000
     2.2 +++ b/src/video/Xext/extensions/xme.h	Sun Oct 29 14:45:46 2006 +0000
     2.3 @@ -38,5 +38,9 @@
     2.4                                     XiGMiscResolutionInfo ** presolutions);
     2.5  extern void XiGMiscChangeResolution(Display * dpy, int screen, int view,
     2.6                                      int width, int height, int refresh);
     2.7 +
     2.8 +/* SDL addition from Ryan: free memory used by xme. */
     2.9 +extern void XiGMiscDestroy(void);
    2.10 +
    2.11  #endif /* _XME_H_INCLUDED */
    2.12  /* vi: set ts=4 sw=4 expandtab: */