Merge pull request #276 from electron/context-shutdown-crash
Cleanly shutdown browser context
This commit is contained in:
commit
28f96f32f9
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,8 @@ BrowserContext::BrowserContext(const std::string& partition, bool in_memory)
|
||||||
}
|
}
|
||||||
|
|
||||||
BrowserContext::~BrowserContext() {
|
BrowserContext::~BrowserContext() {
|
||||||
|
NotifyWillBeDestroyed(this);
|
||||||
|
ShutdownStoragePartitions();
|
||||||
BrowserThread::DeleteSoon(BrowserThread::IO,
|
BrowserThread::DeleteSoon(BrowserThread::IO,
|
||||||
FROM_HERE,
|
FROM_HERE,
|
||||||
resource_context_.release());
|
resource_context_.release());
|
||||||
|
|
Loading…
Reference in a new issue