Commit 1ec438cb authored by Szabolcs David's avatar Szabolcs David
Browse files

Fix the crash on exit with --single-process


In single process mode, RenderProcessObserverHelper got destroyed
before its host.

Change-Id: Ic2f36de3218f5ad6781610dbf677675b7e41a9eb
Reviewed-by: default avatarAndras Becsi <andras.becsi@theqtcompany.com>
Showing with 2 additions and 0 deletions
...@@ -207,6 +207,8 @@ UserScriptControllerHost::UserScriptControllerHost() ...@@ -207,6 +207,8 @@ UserScriptControllerHost::UserScriptControllerHost()
UserScriptControllerHost::~UserScriptControllerHost() UserScriptControllerHost::~UserScriptControllerHost()
{ {
Q_FOREACH (content::RenderProcessHost *renderer, m_observedProcesses)
renderer->RemoveObserver(m_renderProcessObserver.data());
} }
} // namespace } // namespace
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment