author | Sam Lantinga <slouken@libsdl.org> |
Mon, 21 Sep 2009 07:59:44 +0000 | |
branch | SDL-1.2 |
changeset 4210 | 8f501bbc3bf1 |
parent 4209 | 62e86ab81e3c |
child 4211 | 3ce5bfddbaf6 |
--- 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;