Make sure BrowserContext is destroyed on exit

This commit is contained in:
Cheng Zhao 2015-09-06 10:30:59 +08:00
parent 5eb0bedbbc
commit e2bd1abce6
8 changed files with 47 additions and 16 deletions

View file

@ -221,7 +221,10 @@ bool Window::IsDestroyed() const {
}
void Window::Destroy() {
window_->CloseContents(nullptr);
if (window_) {
window_->CloseContents(nullptr);
window_.reset();
}
}
void Window::Close() {