Make sure BrowserContext is destroyed on exit
This commit is contained in:
parent
5eb0bedbbc
commit
e2bd1abce6
8 changed files with 47 additions and 16 deletions
|
@ -221,7 +221,10 @@ bool Window::IsDestroyed() const {
|
|||
}
|
||||
|
||||
void Window::Destroy() {
|
||||
window_->CloseContents(nullptr);
|
||||
if (window_) {
|
||||
window_->CloseContents(nullptr);
|
||||
window_.reset();
|
||||
}
|
||||
}
|
||||
|
||||
void Window::Close() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue