Merge pull request #276 from electron/context-shutdown-crash

Cleanly shutdown browser context
This commit is contained in:
Kevin Sawicki 2017-02-14 08:24:52 -08:00 committed by GitHub
commit 28f96f32f9

View file

@ -102,6 +102,8 @@ BrowserContext::BrowserContext(const std::string& partition, bool in_memory)
}
BrowserContext::~BrowserContext() {
NotifyWillBeDestroyed(this);
ShutdownStoragePartitions();
BrowserThread::DeleteSoon(BrowserThread::IO,
FROM_HERE,
resource_context_.release());