comparison 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
comparison
equal deleted inserted replaced
1318:f95502c6fc72 1319:66f6c64c2c69
1294 /* Flush any delayed updates */ 1294 /* Flush any delayed updates */
1295 pXSync(GFX_Display, False); 1295 pXSync(GFX_Display, False);
1296 1296
1297 /* Close the connection with the IM server */ 1297 /* Close the connection with the IM server */
1298 #ifdef X_HAVE_UTF8_STRING 1298 #ifdef X_HAVE_UTF8_STRING
1299 if (SDL_IC == NULL) { 1299 if (SDL_IC != NULL) {
1300 pXDestroyIC(SDL_IC); 1300 pXDestroyIC(SDL_IC);
1301 SDL_IC = NULL; 1301 SDL_IC = NULL;
1302 } 1302 }
1303 if (SDL_IM == NULL) { 1303 if (SDL_IM != NULL) {
1304 pXCloseIM(SDL_IM); 1304 pXCloseIM(SDL_IM);
1305 SDL_IM = NULL; 1305 SDL_IM = NULL;
1306 } 1306 }
1307 #endif 1307 #endif
1308 1308