Merged Ryan's fix, in case we need it later.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402216
This commit is contained in:
Sam Lantinga 2006-10-29 14:45:46 +00:00
parent 28c9fb92a1
commit c5557f3a53
2 changed files with 14 additions and 0 deletions

View file

@ -408,4 +408,14 @@ XiGMiscFullScreen(Display * dpy, int screen, XID window, XID cmap)
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: */

View file

@ -38,5 +38,9 @@ extern int XiGMiscQueryResolutions(Display * dpy, int screen, int view,
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: */