From 8adb65fa29e4619b4e8e87064e6d3e0cc09684b4 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Mon, 8 Jun 2015 20:31:07 +0530 Subject: [PATCH] fix dereferencing null pointer --- brightray/browser/inspectable_web_contents_impl.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brightray/browser/inspectable_web_contents_impl.cc b/brightray/browser/inspectable_web_contents_impl.cc index e383bc545c..c30c6f1bec 100644 --- a/brightray/browser/inspectable_web_contents_impl.cc +++ b/brightray/browser/inspectable_web_contents_impl.cc @@ -248,7 +248,8 @@ void InspectableWebContentsImpl::AttachTo(const scoped_refptrDetachClient(); + if (agent_host_.get()) + agent_host_->DetachClient(); agent_host_ = nullptr; }