From 1f6585c15ab1de07b259e72ebc3702bebaa23903 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 30 Nov 2013 21:50:00 +0000 Subject: The FLView object is now released just after the setContentView message is sent. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10022 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 7dddecb53..1853459f6 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2391,6 +2391,7 @@ void Fl_X::make(Fl_Window* w) Fl_X::first = x; FLView *myview = [[FLView alloc] init]; [cw setContentView:myview]; + [myview release]; [cw setLevel:winlevel]; q_set_window_title(cw, w->label(), w->iconlabel()); @@ -2872,7 +2873,6 @@ void Fl_X::destroy() { if ( [NSView focusView] == topview ) { [topview unlockFocus]; } - [topview release]; [xid close]; } } -- cgit v1.2.3