src/video/cocoa/SDL_cocoawindow.m
changeset 9474 067b78126485
parent 9419 9763f689bced
child 9587 18979eac0a35
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Wed Apr 08 01:42:47 2015 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Wed Apr 08 02:00:14 2015 -0400
     1.3 @@ -1189,16 +1189,9 @@
     1.4  {
     1.5      NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
     1.6      NSWindow *nswindow = ((SDL_WindowData *) window->driverdata)->nswindow;
     1.7 -    NSString *string;
     1.8 -
     1.9 -    if(window->title) {
    1.10 -        string = [[NSString alloc] initWithUTF8String:window->title];
    1.11 -    } else {
    1.12 -        string = [[NSString alloc] init];
    1.13 -    }
    1.14 +    NSString *string = [[NSString alloc] initWithUTF8String:window->title];
    1.15      [nswindow setTitle:string];
    1.16      [string release];
    1.17 -
    1.18      [pool release];
    1.19  }
    1.20