Skip to content

Commit

Permalink
Fixed bug #571.. I think. :)
Browse files Browse the repository at this point in the history
It certainly can't hurt!
  • Loading branch information
slouken committed Sep 21, 2009
1 parent 67255d8 commit b4c9cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11video.c
Expand Up @@ -238,7 +238,7 @@ static int xio_errhandler(Display *d)
/* Ack! Lost X11 connection! */

/* We will crash if we try to clean up our display */
if ( current_video->hidden->Ximage ) {
if ( SDL_VideoSurface && current_video->hidden->Ximage ) {
SDL_VideoSurface->pixels = NULL;
}
current_video->hidden->X11_Display = NULL;
Expand Down

0 comments on commit b4c9cdc

Please sign in to comment.