Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11video.c @ 1319:66f6c64c2c69
Logic bug in X11 Unicode input shutdown...was checking for == NULL
when it should be != NULL.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 01 Feb 2006 19:59:02 +0000 |
parents | c9b51268668f |
children | 1dfc85090d07 |
line wrap: on
line diff
--- 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; }