src/video/x11/SDL_x11window.c
changeset 8978 7753e4fd3d1d
parent 8953 dc80dc0bd22e
child 9117 236241f5d225
     1.1 --- a/src/video/x11/SDL_x11window.c	Sun Jul 06 22:15:31 2014 +0100
     1.2 +++ b/src/video/x11/SDL_x11window.c	Mon Jul 07 10:33:32 2014 -0700
     1.3 @@ -1394,8 +1394,6 @@
     1.4  {
     1.5      SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
     1.6  
     1.7 -    window->driverdata = NULL;
     1.8 -
     1.9      if (data) {
    1.10          SDL_VideoData *videodata = (SDL_VideoData *) data->videodata;
    1.11          Display *display = videodata->display;
    1.12 @@ -1424,6 +1422,7 @@
    1.13          }
    1.14          SDL_free(data);
    1.15      }
    1.16 +    window->driverdata = NULL;
    1.17  }
    1.18  
    1.19  SDL_bool