src/video/uikit/SDL_uikitwindow.m
changeset 8978 7753e4fd3d1d
parent 8905 1519c462cee6
child 9488 f15520430c94
     1.1 --- a/src/video/uikit/SDL_uikitwindow.m	Sun Jul 06 22:15:31 2014 +0100
     1.2 +++ b/src/video/uikit/SDL_uikitwindow.m	Mon Jul 07 10:33:32 2014 -0700
     1.3 @@ -290,13 +290,12 @@
     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          [data->viewcontroller release];
    1.11          [data->uiwindow release];
    1.12          SDL_free(data);
    1.13      }
    1.14 +    window->driverdata = NULL;
    1.15  }
    1.16  
    1.17  SDL_bool