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
This commit is contained in:
Ryan C. Gordon 2006-02-01 19:59:02 +00:00
parent 67ecc5318b
commit 1f6bc947a3

View file

@ -1296,11 +1296,11 @@ void X11_VideoQuit(_THIS)
/* 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;
}