mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 18:24:09 +03:00
When a window is closed, the AtomCefClient is destroyed.
This commit is contained in:
parent
3860fe1de7
commit
e96d1b07d3
@ -142,15 +142,7 @@ bool AtomCefClient::OnKeyEvent(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
void AtomCefClient::OnBeforeClose(CefRefPtr<CefBrowser> browser) {
|
||||
REQUIRE_UI_THREAD();
|
||||
|
||||
|
||||
// TODO: Ask Marshal. 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;
|
||||
// }
|
||||
|
||||
// REQUIRE_UI_THREAD(); // When uncommented this fails when app is terminated
|
||||
m_Browser = NULL;
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,16 @@
|
||||
@synthesize devToolsView=_devToolsView;
|
||||
|
||||
- (void)dealloc {
|
||||
_cefClient = NULL;
|
||||
_cefDevToolsClient = NULL;
|
||||
[_splitView release];
|
||||
[_devToolsView release];
|
||||
[_webView release];
|
||||
[_bootstrapScript release];
|
||||
[_resourcePath release];
|
||||
[_pathToOpen release];
|
||||
|
||||
_cefClient = NULL;
|
||||
_cefDevToolsClient = NULL;
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user