src/video/cocoa/SDL_cocoawindow.m
changeset 8905 1519c462cee6
parent 8810 901ac824a18b
child 8926 38e89ab78465
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Sat Jun 21 21:46:42 2014 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sun Jun 22 02:30:36 2014 -0700
     1.3 @@ -1488,6 +1488,8 @@
     1.4      NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
     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->listener close];
    1.11          [data->listener release];