Fix crash when destroying NetLog
This commit is contained in:
parent
214cbf357a
commit
505f2ab9e7
1 changed files with 4 additions and 2 deletions
|
@ -38,8 +38,10 @@ NetLog::NetLog() {
|
|||
}
|
||||
|
||||
NetLog::~NetLog() {
|
||||
if (file_net_log_observer_) {
|
||||
file_net_log_observer_->StopObserving(nullptr, base::Closure());
|
||||
file_net_log_observer_.reset();
|
||||
}
|
||||
}
|
||||
|
||||
void NetLog::StartLogging() {
|
||||
|
|
Loading…
Reference in a new issue