Merge pull request #114 from deepak1556/webcontents_patch

fix dereferencing possibly null pointer
This commit is contained in:
Cheng Zhao 2015-06-09 10:31:07 +08:00
commit 418264d42a

View file

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