Author: manolo
Date: 2011-01-16 13:05:29 -0800 (Sun, 16 Jan 2011)
New Revision: 8285
Log:
Fix STR #2524: no more NSAutoreleaseNoPool messages.
Modified:
branches/branch-1.3/src/Fl_cocoa.mm
Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2011-01-16 19:56:01 UTC (rev 8284)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2011-01-16 21:05:29 UTC (rev 8285)
@@ -1890,8 +1890,6 @@
fl_show_iconic = 0;
}
else { // create a desktop window
- NSAutoreleasePool *localPool;
- localPool = [[NSAutoreleasePool alloc] init];
Fl_Group::current(0);
fl_open_display();
NSInteger winlevel = NSNormalWindowLevel;
@@ -2045,7 +2043,6 @@
Fl::e_number = old_event;
if (w->modal()) { Fl::modal_ = w; fl_fix_focus(); }
- [localPool release];
}
}
@@ -2917,8 +2914,6 @@
void fl_mac_set_about( Fl_Callback *cb, void *user_data, int shortcut)
{
- NSAutoreleasePool *localPool;
- localPool = [[NSAutoreleasePool alloc] init];
fl_open_display();
Fl_Menu_Item aboutItem;
memset(&aboutItem, 0, sizeof(Fl_Menu_Item));
@@ -2939,7 +2934,6 @@
[appleMenu insertItem:item atIndex:0];
CFRelease(cfname);
[item setTarget:item];
- [localPool release];
}
static char *remove_ampersand(const char *s)
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit