src/video/cocoa/SDL_cocoamessagebox.m
changeset 6714 146d1d7ecdc4
parent 6639 c7e81fae23c4
child 6832 156e608ec4ef
     1.1 --- a/src/video/cocoa/SDL_cocoamessagebox.m	Wed Nov 28 19:19:57 2012 -0800
     1.2 +++ b/src/video/cocoa/SDL_cocoamessagebox.m	Thu Nov 29 00:45:36 2012 -0800
     1.3 @@ -51,8 +51,8 @@
     1.4          [alert setAlertStyle:NSInformationalAlertStyle];
     1.5      }
     1.6  
     1.7 -    [alert setMessageText:[[NSString alloc] initWithUTF8String:messageboxdata->title]];
     1.8 -    [alert setInformativeText:[[NSString alloc] initWithUTF8String:messageboxdata->message]];
     1.9 +    [alert setMessageText:[NSString stringWithUTF8String:messageboxdata->title]];
    1.10 +    [alert setInformativeText:[NSString stringWithUTF8String:messageboxdata->message]];
    1.11  
    1.12      const SDL_MessageBoxButtonData *buttons = messageboxdata->buttons;
    1.13      int i;
    1.14 @@ -70,6 +70,7 @@
    1.15      NSInteger clicked = [alert runModal];
    1.16      clicked -= NSAlertFirstButtonReturn;
    1.17      *buttonid = buttons[clicked].buttonid;
    1.18 +    [alert release];
    1.19  
    1.20      [pool release];
    1.21