fix dereferencing null pointer

This commit is contained in:
deepak1556 2015-06-08 20:31:07 +05:30
parent 51bb357405
commit 8adb65fa29

View file

@ -248,7 +248,8 @@ void InspectableWebContentsImpl::AttachTo(const scoped_refptr<content::DevToolsA
}
void InspectableWebContentsImpl::Detach() {
agent_host_->DetachClient();
if (agent_host_.get())
agent_host_->DetachClient();
agent_host_ = nullptr;
}