changeset 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 62e86ab81e3c
children 3ce5bfddbaf6
files src/video/x11/SDL_x11video.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;