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