diff --git a/atom/client_handler.cpp b/atom/client_handler.cpp index 008cfeeb4..668332136 100644 --- a/atom/client_handler.cpp +++ b/atom/client_handler.cpp @@ -54,6 +54,15 @@ bool ClientHandler::OnConsoleMessage(CefRefPtr browser, void ClientHandler::OnBeforeClose(CefRefPtr browser) { REQUIRE_UI_THREAD(); + + + // this was in cefclient... was there a good reason? +// if(m_BrowserHwnd == browser->GetWindowHandle()) { +// // Free the browser pointer so that the browser can be destroyed +// m_Browser = NULL; +// } + + m_Browser = NULL; } void ClientHandler::OnAfterCreated(CefRefPtr browser) {