mirror of
https://github.com/electron/electron.git
synced 2026-02-06 05:05:16 -05:00
Destroy ResourceContext on the IO thread
This matches content_shell and fixes a debug assertion (and maybe even a crash).
This commit is contained in:
@@ -89,6 +89,9 @@ void BrowserContext::Initialize() {
|
||||
}
|
||||
|
||||
BrowserContext::~BrowserContext() {
|
||||
content::BrowserThread::DeleteSoon(content::BrowserThread::IO,
|
||||
FROM_HERE,
|
||||
resource_context_.release());
|
||||
}
|
||||
|
||||
void BrowserContext::RegisterInternalPrefs(PrefRegistrySimple* registry) {
|
||||
|
||||
Reference in New Issue
Block a user