src/video/cocoa/SDL_cocoawindow.m
changeset 8926 38e89ab78465
parent 8905 1519c462cee6
child 8953 dc80dc0bd22e
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Wed Jun 25 01:43:58 2014 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Wed Jun 25 02:08:37 2014 -0700
     1.3 @@ -921,7 +921,7 @@
     1.4      SDL_WindowData *data;
     1.5  
     1.6      /* Allocate the window data */
     1.7 -    data = (SDL_WindowData *) SDL_calloc(1, sizeof(*data));
     1.8 +    window->driverdata = data = (SDL_WindowData *) SDL_calloc(1, sizeof(*data));
     1.9      if (!data) {
    1.10          return SDL_OutOfMemory();
    1.11      }
    1.12 @@ -995,7 +995,6 @@
    1.13  
    1.14      /* All done! */
    1.15      [pool release];
    1.16 -    window->driverdata = data;
    1.17      return 0;
    1.18  }
    1.19