Commit 6bae66b5 authored by Sam Lantinga's avatar Sam Lantinga

Fixed bug #571.. I think. :)

It certainly can't hurt!

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403845
parent 6a11032c
...@@ -238,7 +238,7 @@ static int xio_errhandler(Display *d) ...@@ -238,7 +238,7 @@ static int xio_errhandler(Display *d)
/* Ack! Lost X11 connection! */ /* Ack! Lost X11 connection! */
/* We will crash if we try to clean up our display */ /* 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; SDL_VideoSurface->pixels = NULL;
} }
current_video->hidden->X11_Display = NULL; current_video->hidden->X11_Display = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment