summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFumitoshi Ukai <fumitoshi.ukai@gmail.com>2016-10-19 07:10:39 (GMT)
committerGitHub <noreply@github.com>2016-10-19 07:10:39 (GMT)
commitbf766fac4f828c81556499d7c16d53cc871d8bd2 (patch)
treeee05970addbf1a841663feeeda7ee2a883801383
parentff5fa62a5f651aaee4b58ef96af4370cf888cfbc (diff)
parenta00dfdfc5343cf6f0be282624166405f1da47a75 (diff)
downloadglog-bf766fac4f828c81556499d7c16d53cc871d8bd2.zip
glog-bf766fac4f828c81556499d7c16d53cc871d8bd2.tar.gz
glog-bf766fac4f828c81556499d7c16d53cc871d8bd2.tar.bz2
Merge pull request #123 from yying/master
Set sinks_ to NULL after deletion in LogDestination::DeleteLogDestinations
-rw-r--r--src/logging.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/logging.cc b/src/logging.cc
index ec9eef1..0b5e6ee 100644
--- a/src/logging.cc
+++ b/src/logging.cc
@@ -825,6 +825,7 @@ void LogDestination::DeleteLogDestinations() {
}
MutexLock l(&sink_mutex_);
delete sinks_;
+ sinks_ = NULL;
}
namespace {