diff --git a/src/logging.cc b/src/logging.cc index ad8292d41..0f8b81504 100644 --- a/src/logging.cc +++ b/src/logging.cc @@ -649,7 +649,10 @@ LogDestination::~LogDestination() { } void LogDestination::SetLoggerImpl(base::Logger* logger) { - if (logger_ == logger) return; + if (logger_ == logger) { + // Prevent releasing currently held sink on reset + return; + } if (logger_ && logger_ != &fileobject_) { // Delete user-specified logger set via SetLogger().