From adf33847304c97ac516f521455c8dd41e9d7efc3 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 7 Jul 2014 17:18:45 +0000 Subject: [PATCH] try to fix a crash reported by spirit. not sure how I didn't find that myself. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4709 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidlinuxglx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/gl/gl_vidlinuxglx.c b/engine/gl/gl_vidlinuxglx.c index b2700b5f4..f109ba13a 100644 --- a/engine/gl/gl_vidlinuxglx.c +++ b/engine/gl/gl_vidlinuxglx.c @@ -587,8 +587,10 @@ static void X_ShutdownUnicode(void) { if (x11.unicodecontext) x11.pXDestroyIC(x11.unicodecontext); + x11.unicodecontext = NULL; if (x11.inputmethod) x11.pXCloseIM(x11.inputmethod); + x11.inputmethod = NULL; x11.dounicode = false; } #include