summaryrefslogtreecommitdiff
path: root/src/Fl_cocoa.mm
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-03-19 08:42:09 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-03-19 08:42:09 +0100
commit5884d37ee8ad320fe53ecd64565e2ec0058e3f97 (patch)
tree0eb7a7e63f4ff6d1bbfdbc649658be6aa45f9603 /src/Fl_cocoa.mm
parentaa955812f988a4c0ffa3a43e9a5ba7a20a0e1f92 (diff)
Restore default YES value for FLWindow releasedWhenClosed property.
Diffstat (limited to 'src/Fl_cocoa.mm')
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 07404189f..cf992dd17 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -588,7 +588,6 @@ void Fl_Cocoa_Screen_Driver::breakMacEventLoop()
[[self contentView] removeTrackingArea:ta];
}
#endif
- [self release];
// when a fullscreen window is closed, windowDidResize may be sent after the close message was sent
// and before the FLWindow receives the final dealloc message
w = NULL;
@@ -3100,7 +3099,6 @@ Fl_X* Fl_Cocoa_Window_Driver::makeWindow()
contentRect:crect
styleMask:winstyle];
[cw setFrameOrigin:crect.origin];
- [cw setReleasedWhenClosed:NO];
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_12
if (fl_mac_os_version >= 101200) {
if (!w->parent() && (winstyle & NSTitledWindowMask) && (winstyle & NSResizableWindowMask)