From 7c188f4e0eb2e8746f3f5ac0174d0674ed2b2f5a Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Mon, 16 Mar 2015 14:12:37 +0100 Subject: [PATCH] Fixing EXC_BAD_ACCESS error. --- examples/common/entry/entry_osx.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/common/entry/entry_osx.mm b/examples/common/entry/entry_osx.mm index b46fbdb4b..14a493012 100644 --- a/examples/common/entry/entry_osx.mm +++ b/examples/common/entry/entry_osx.mm @@ -584,10 +584,10 @@ namespace entry if (!s_ctx.m_fullscreen) { - [NSMenu setMenuBarVisible: false]; s_ctx.m_style &= ~NSTitledWindowMask; dispatch_async(dispatch_get_main_queue() , ^{ + [NSMenu setMenuBarVisible: false]; [window setStyleMask: s_ctx.m_style]; [window setFrame:screenRect display:YES]; }); @@ -596,10 +596,10 @@ namespace entry } else { - [NSMenu setMenuBarVisible: true]; s_ctx.m_style |= NSTitledWindowMask; dispatch_async(dispatch_get_main_queue() , ^{ + [NSMenu setMenuBarVisible: true]; [window setStyleMask: s_ctx.m_style]; [window setFrame:s_ctx.m_windowFrame display:YES]; });