This commit is contained in:
probablycorey 2013-05-01 12:04:33 -07:00
parent 0be166bb59
commit 8f03ff2952
2 changed files with 1 additions and 3 deletions

View File

@ -278,8 +278,7 @@
}
}
- (NSApplicationTerminateReply)applicationShouldTerminate:
(NSApplication *)sender {
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender {
for (NSWindow *window in [self windows]) {
[window performClose:self];
}

View File

@ -171,7 +171,6 @@ bool AtomCefClient::OnKeyEvent(CefRefPtr<CefBrowser> browser,
}
void AtomCefClient::OnBeforeClose(CefRefPtr<CefBrowser> browser) {
// REQUIRE_UI_THREAD(); // When uncommented this fails when app is terminated
m_Browser = NULL;
numberOfOpenBrowsers--;
if (numberOfOpenBrowsers == 0) {