fix dereferencing null pointer
This commit is contained in:
parent
51bb357405
commit
8adb65fa29
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue