changeset 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 f95502c6fc72
children 2a2f31cc4c8b
files src/video/x11/SDL_x11video.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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;
 		}