diff src/video/x11/SDL_x11video.c @ 4210:8f501bbc3bf1 SDL-1.2

Fixed bug #571.. I think. :) It certainly can't hurt!
author Sam Lantinga <slouken@libsdl.org>
date Mon, 21 Sep 2009 07:59:44 +0000
parents a1b03ba2fcd0
children 50b4ab8f8271
line wrap: on
line diff
--- 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;