Mac OS: Fixed issue where the system object supporting a window created before the event loop started could not be

deallocated.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10586 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2015-02-18 06:20:57 +00:00
parent fd7cfbb6f0
commit 93372a77c1

View File

@ -2823,6 +2823,7 @@ static void set_subwindow_frame(Fl_Window *w) { // maps a subwindow at its corre
*/
void Fl_X::make(Fl_Window* w)
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
Fl_Group::current(0);
fl_open_display();
NSInteger winlevel = NSNormalWindowLevel;
@ -3041,6 +3042,7 @@ void Fl_X::make(Fl_Window* w)
Fl::e_number = old_event;
// if (w->modal()) { Fl::modal_ = w; fl_fix_focus(); }
[pool release];
}