aboutsummaryrefslogtreecommitdiff
path: root/nxcomp
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2017-06-30 22:42:25 +0200
committerMihai Moldovan <ionic@ionic.de>2017-10-27 08:45:42 +0200
commit67b0a17faa5240ee924cd90f496a412339d00356 (patch)
treeea17116ec1a43fd09122b90ae6471b7cd1bdd2b1 /nxcomp
parentca08512cff4b3d3340a55036ee151fac8f145255 (diff)
downloadnx-libs-67b0a17faa5240ee924cd90f496a412339d00356.tar.gz
nx-libs-67b0a17faa5240ee924cd90f496a412339d00356.tar.bz2
nx-libs-67b0a17faa5240ee924cd90f496a412339d00356.zip
nxcomp/Log.h: delete stream_ member before class object destruction.
Diffstat (limited to 'nxcomp')
-rw-r--r--nxcomp/src/Log.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/nxcomp/src/Log.h b/nxcomp/src/Log.h
index 32779bcaa..44c43a47b 100644
--- a/nxcomp/src/Log.h
+++ b/nxcomp/src/Log.h
@@ -249,6 +249,10 @@ class NXLog
free_thread_data(pdt);
pthread_key_delete(tls_key_);
+
+ if ((stream_) && (stream_ != &std::cerr)) {
+ delete stream_;
+ }
}
/** Minimum severity level to output */