src/video/windows/SDL_windowswindow.c
changeset 8978 7753e4fd3d1d
parent 8953 dc80dc0bd22e
child 9422 286c854c1d5b
     1.1 --- a/src/video/windows/SDL_windowswindow.c	Sun Jul 06 22:15:31 2014 +0100
     1.2 +++ b/src/video/windows/SDL_windowswindow.c	Mon Jul 07 10:33:32 2014 -0700
     1.3 @@ -619,8 +619,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          ReleaseDC(data->hwnd, data->hdc);
    1.11          if (data->created) {
    1.12 @@ -639,6 +637,7 @@
    1.13          }
    1.14          SDL_free(data);
    1.15      }
    1.16 +    window->driverdata = NULL;
    1.17  }
    1.18  
    1.19  SDL_bool