mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 18:24:09 +03:00
Null out the browser reference in ClientHandler-OnBeforeClose
This commit is contained in:
parent
c71896b8c7
commit
dba2304e6e
@ -54,6 +54,15 @@ bool ClientHandler::OnConsoleMessage(CefRefPtr<CefBrowser> browser,
|
||||
|
||||
void ClientHandler::OnBeforeClose(CefRefPtr<CefBrowser> 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<CefBrowser> browser) {
|
||||
|
Loading…
Reference in New Issue
Block a user