| Index: content/browser/browser_child_process_host_impl.cc
|
| diff --git a/content/browser/browser_child_process_host_impl.cc b/content/browser/browser_child_process_host_impl.cc
|
| index 75a49ee824c7190c9df7d2f81e8f1602e295eaec..b2c231dfa444e9a578a392a3fee4b127eaf9e73e 100644
|
| --- a/content/browser/browser_child_process_host_impl.cc
|
| +++ b/content/browser/browser_child_process_host_impl.cc
|
| @@ -105,7 +105,10 @@ void BrowserChildProcessHostImpl::TerminateAll() {
|
| // Make a copy since the BrowserChildProcessHost dtor mutates the original
|
| // list.
|
| BrowserChildProcessList copy = g_child_process_list.Get();
|
| - STLDeleteElements(©);
|
| + for (BrowserChildProcessList::iterator it = copy.begin();
|
| + it != copy.end(); ++it) {
|
| + delete (*it)->delegate(); // ~*HostDelegate deletes *HostImpl.
|
| + }
|
| }
|
|
|
| void BrowserChildProcessHostImpl::Launch(
|
|
|