Commit 1f6bc947 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Logic bug in X11 Unicode input shutdown...was checking for == NULL

 when it should be != NULL.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401322
parent 67ecc531
...@@ -1296,11 +1296,11 @@ void X11_VideoQuit(_THIS) ...@@ -1296,11 +1296,11 @@ void X11_VideoQuit(_THIS)
/* Close the connection with the IM server */ /* Close the connection with the IM server */
#ifdef X_HAVE_UTF8_STRING #ifdef X_HAVE_UTF8_STRING
if (SDL_IC == NULL) { if (SDL_IC != NULL) {
pXDestroyIC(SDL_IC); pXDestroyIC(SDL_IC);
SDL_IC = NULL; SDL_IC = NULL;
} }
if (SDL_IM == NULL) { if (SDL_IM != NULL) {
pXCloseIM(SDL_IM); pXCloseIM(SDL_IM);
SDL_IM = NULL; SDL_IM = NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment