summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logging.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/logging.cc b/src/logging.cc
index 5543e3a..091b0db 100644
--- a/src/logging.cc
+++ b/src/logging.cc
@@ -817,6 +817,11 @@ void LogDestination::DeleteLogDestinations() {
delete log_destinations_[severity];
log_destinations_[severity] = NULL;
}
+ MutexLock l(&sink_mutex_);
+ for (size_t i = 0; i < sinks_->size(); ++i) {
+ delete (*sinks_)[i];
+ }
+ delete sinks_;
}
namespace {