Merge pull request #114 from deepak1556/webcontents_patch
fix dereferencing possibly null pointer
This commit is contained in:
commit
418264d42a
1 changed files with 2 additions and 1 deletions
|
@ -248,6 +248,7 @@ void InspectableWebContentsImpl::AttachTo(const scoped_refptr<content::DevToolsA
|
|||
}
|
||||
|
||||
void InspectableWebContentsImpl::Detach() {
|
||||
if (agent_host_.get())
|
||||
agent_host_->DetachClient();
|
||||
agent_host_ = nullptr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue