summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/user_script_controller_host.cpp2
1 files changed, 2 insertions, 0 deletions
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