From 5884d37ee8ad320fe53ecd64565e2ec0058e3f97 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 19 Mar 2022 08:42:09 +0100 Subject: Restore default YES value for FLWindow releasedWhenClosed property. --- src/Fl_cocoa.mm | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/Fl_cocoa.mm') 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) -- cgit v1.2.3