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