From 1ec438cb947b8079af71d306ab7e329ec9062f8e Mon Sep 17 00:00:00 2001 From: Szabolcs David Date: Thu, 16 Apr 2015 08:09:56 -0700 Subject: Fix the crash on exit with --single-process In single process mode, RenderProcessObserverHelper got destroyed before its host. Change-Id: Ic2f36de3218f5ad6781610dbf677675b7e41a9eb Reviewed-by: Andras Becsi --- src/core/user_script_controller_host.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/user_script_controller_host.cpp b/src/core/user_script_controller_host.cpp index 69284dbe1..2f4a55c27 100644 --- a/src/core/user_script_controller_host.cpp +++ b/src/core/user_script_controller_host.cpp @@ -207,6 +207,8 @@ UserScriptControllerHost::UserScriptControllerHost() UserScriptControllerHost::~UserScriptControllerHost() { + Q_FOREACH (content::RenderProcessHost *renderer, m_observedProcesses) + renderer->RemoveObserver(m_renderProcessObserver.data()); } } // namespace -- cgit v1.2.3