summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/child_process_host.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/child_process_host.cc b/chrome/common/child_process_host.cc
index 7839f44..a5058d2 100644
--- a/chrome/common/child_process_host.cc
+++ b/chrome/common/child_process_host.cc
@@ -55,6 +55,10 @@ ChildProcessHost::~ChildProcessHost() {
if (handle()) {
watcher_.StopWatching();
ProcessWatcher::EnsureProcessTerminated(handle());
+
+ // Above call took ownership, so don't want WaitableEvent to assert because
+ // the handle isn't valid anymore.
+ process_event_->Release();
}
}