mirror of
https://github.com/electron/electron.git
synced 2026-01-28 00:38:35 -05:00
Merge pull request #114 from deepak1556/webcontents_patch
fix dereferencing possibly null pointer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user