src/video/x11/SDL_x11opengl.c
changeset 11645 2088cd828335
parent 11441 f9cf3fb0b2f7
child 11811 5d94cb6b24d3
     1.1 --- a/src/video/x11/SDL_x11opengl.c	Sat Oct 21 22:26:24 2017 -0700
     1.2 +++ b/src/video/x11/SDL_x11opengl.c	Sun Oct 22 20:24:58 2017 +0200
     1.3 @@ -463,7 +463,9 @@
     1.4          }
     1.5      }
     1.6  
     1.7 -    X11_XDestroyWindow(display, w);
     1.8 +    if (w) {
     1.9 +        X11_XDestroyWindow(display, w);
    1.10 +    }
    1.11      X11_PumpEvents(_this);
    1.12  }
    1.13