# HG changeset patch # User Sam Lantinga # Date 1253519984 0 # Node ID 8f501bbc3bf1c9adea5fcfe71a0d4243bc699078 # Parent 62e86ab81e3ceb5f0da6eac1f0be42a31e97be68 Fixed bug #571.. I think. :) It certainly can't hurt! diff -r 62e86ab81e3c -r 8f501bbc3bf1 src/video/x11/SDL_x11video.c --- a/src/video/x11/SDL_x11video.c Mon Sep 21 07:32:26 2009 +0000 +++ b/src/video/x11/SDL_x11video.c Mon Sep 21 07:59:44 2009 +0000 @@ -238,7 +238,7 @@ /* 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;