summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2013-11-30 21:50:00 +0000
committerManolo Gouy <Manolo>2013-11-30 21:50:00 +0000
commit1f6585c15ab1de07b259e72ebc3702bebaa23903 (patch)
treee6b5b48771fac15d99895c7cc5119f5597b0a846 /src
parent05dd61d4eee1801fc51c5009a1295836020ace9e (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 1 insertions, 1 deletions
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];
}
}