summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndy Ying <andy@trailofbits.com>2016-09-11 05:16:32 (GMT)
committerAndy Ying <andy@trailofbits.com>2016-09-11 05:16:32 (GMT)
commita00dfdfc5343cf6f0be282624166405f1da47a75 (patch)
tree784ed2545aa50e2f003892111d63d1e100a3705e /src
parent0472b91c5defdf90cff7292e3bf7bd86770a9a0a (diff)
downloadglog-a00dfdfc5343cf6f0be282624166405f1da47a75.zip
glog-a00dfdfc5343cf6f0be282624166405f1da47a75.tar.gz
glog-a00dfdfc5343cf6f0be282624166405f1da47a75.tar.bz2
NULL sinks_ after deletion to prevent dangling pointer
Diffstat (limited to 'src')
-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 {