# HG changeset patch # User Ryan C. Gordon # Date 1138823942 0 # Node ID 66f6c64c2c69c789a786fec05ba8dabe0b216463 # Parent f95502c6fc72afb437c7f1a27970eae186c131b3 Logic bug in X11 Unicode input shutdown...was checking for == NULL when it should be != NULL. diff -r f95502c6fc72 -r 66f6c64c2c69 src/video/x11/SDL_x11video.c --- a/src/video/x11/SDL_x11video.c Wed Feb 01 09:28:42 2006 +0000 +++ b/src/video/x11/SDL_x11video.c Wed Feb 01 19:59:02 2006 +0000 @@ -1296,11 +1296,11 @@ /* Close the connection with the IM server */ #ifdef X_HAVE_UTF8_STRING - if (SDL_IC == NULL) { + if (SDL_IC != NULL) { pXDestroyIC(SDL_IC); SDL_IC = NULL; } - if (SDL_IM == NULL) { + if (SDL_IM != NULL) { pXCloseIM(SDL_IM); SDL_IM = NULL; }