summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFumitoshi Ukai <fumitoshi.ukai@gmail.com>2015-08-06 07:57:51 (GMT)
committerFumitoshi Ukai <fumitoshi.ukai@gmail.com>2015-08-06 07:57:51 (GMT)
commit8db3ff0b75933dd1c64c5022a75113192e2bc1e8 (patch)
tree74c4b84e002679b39886a8a823593c7418cf7a2a /src
parente91d5c4d02bf9e56570cae5574105090463947a8 (diff)
parented072a55b885a2b7fe765492aabe3b502c851d72 (diff)
downloadglog-8db3ff0b75933dd1c64c5022a75113192e2bc1e8.zip
glog-8db3ff0b75933dd1c64c5022a75113192e2bc1e8.tar.gz
glog-8db3ff0b75933dd1c64c5022a75113192e2bc1e8.tar.bz2
Merge pull request #12 from ukai/fix_leak
delete LogDestination::sinks_ at DeleteLogDestinations(). fixes #8
Diffstat (limited to 'src')
-rw-r--r--src/logging.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/logging.cc b/src/logging.cc
index 5543e3a..8936fe3 100644
--- a/src/logging.cc
+++ b/src/logging.cc
@@ -817,6 +817,8 @@ void LogDestination::DeleteLogDestinations() {
delete log_destinations_[severity];
log_destinations_[severity] = NULL;
}
+ MutexLock l(&sink_mutex_);
+ delete sinks_;
}
namespace {