summaryrefslogtreecommitdiffstats
path: root/chrome/browser/io_thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/io_thread.cc')
-rw-r--r--chrome/browser/io_thread.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index ca5151b..0382ec4d 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -146,6 +146,11 @@ void IOThread::Init() {
}
void IOThread::CleanUp() {
+ // If any child processes are still running, terminate them and
+ // and delete the ChildProcessHost instances to release whatever
+ // IO thread only resources they are referencing.
+ ChildProcessHost::TerminateAll();
+
// Not initialized in Init(). May not be initialized.
if (dns_master_) {
DCHECK(prefetch_observer_);