| Index: content/browser/browser_context.cc
|
| diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc
|
| index 4330c116c0057041f606df321d828589680d1a02..e57ec6987ccd3b3d54d300986c0b79bb2ae624de 100644
|
| --- a/content/browser/browser_context.cc
|
| +++ b/content/browser/browser_context.cc
|
| @@ -368,8 +368,10 @@ void BrowserContext::NotifyWillBeDestroyed(BrowserContext* browser_context) {
|
| RenderProcessHost::AllHostsIterator();
|
| !host_iterator.IsAtEnd(); host_iterator.Advance()) {
|
| RenderProcessHost* host = host_iterator.GetCurrentValue();
|
| - if (host->GetBrowserContext() == browser_context)
|
| + if (host->GetBrowserContext() == browser_context) {
|
| + // This will also clean up spare RPH references.
|
| host->ForceReleaseWorkerRefCounts();
|
| + }
|
| }
|
| }
|
|
|
|
|