Logic bug in X11 Unicode input shutdown...was checking for == NULL
authorRyan C. Gordon <icculus@icculus.org>
Wed, 01 Feb 2006 19:59:02 +0000
changeset 1319 66f6c64c2c69
parent 1318 f95502c6fc72
child 1320 2a2f31cc4c8b
Logic bug in X11 Unicode input shutdown...was checking for == NULL when it should be != NULL.
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;
 		}