Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit a3f5c05

Browse files
committed
[[ Bug 16288 ]] Shutdown from menu gracefully to avoid out-of-sequence call to MCDeletedObjectsTeardown()
1 parent 72dcb7f commit a3f5c05

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

engine/src/mac-menu.mm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,10 @@ - (void)quitMenuItemSelected: (id)sender
325325
// so we quit!
326326
- (void)quitApplicationSelected: (id)sender
327327
{
328-
NSApplication* t_app = [NSApplication sharedApplication];
329-
330-
[t_app terminate:t_app];
328+
// IM-2015-11-13: [[ Bug 16288 ]] Send shutdown request rather than terminating immediately
329+
// to allow shutdown in orderly fashion.
330+
bool t_shutdown;
331+
MCPlatformCallbackSendApplicationShutdownRequest(t_shutdown);
331332
}
332333

333334
// SN-2014-11-10: [[ Bug 13836 ]] The menubar should be updated if left item is clicked

0 commit comments

Comments
 (0)