Skip to content

Commit

Permalink
Logic bug in X11 Unicode input shutdown...was checking for == NULL
Browse files Browse the repository at this point in the history
 when it should be != NULL.
  • Loading branch information
icculus committed Feb 1, 2006
1 parent e9d9ecf commit 74f2dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/x11/SDL_x11video.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 74f2dc3

Please sign in to comment.