Skip to content
Permalink
Browse files

Logic bug in X11 Unicode input shutdown...was checking for == NULL

 when it should be != NULL.
  • Loading branch information
icculus committed Feb 1, 2006
1 parent e9d9ecf commit 74f2dc3a3f7294a1a1086eeb5952b34a26a394e0
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/video/x11/SDL_x11video.c
@@ -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;
}

0 comments on commit 74f2dc3

Please sign in to comment.