src/video/cocoa/SDL_cocoamessagebox.m
changeset 6836 b0ca1571caf3
parent 6832 156e608ec4ef
child 6848 478ecc8a58b3
     1.1 --- a/src/video/cocoa/SDL_cocoamessagebox.m	Tue Feb 05 12:10:54 2013 -0800
     1.2 +++ b/src/video/cocoa/SDL_cocoamessagebox.m	Fri Feb 08 00:54:08 2013 -0800
     1.3 @@ -56,7 +56,7 @@
     1.4          const SDL_MessageBoxButtonData *buttons = messageboxdata->buttons;
     1.5          int i;
     1.6          for (i = 0; i < messageboxdata->numbuttons; ++i) {
     1.7 -            NSButton *button = [alert addButtonWithTitle:[[NSString alloc] initWithUTF8String:buttons[i].text]];
     1.8 +            NSButton *button = [alert addButtonWithTitle:[NSString stringWithUTF8String:buttons[i].text]];
     1.9              if (buttons[i].flags & SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT) {
    1.10                  [button setKeyEquivalent:@"\r"];
    1.11              } else if (buttons[i].flags & SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT) {