diff options
author | Mihai Moldovan <ionic@ionic.de> | 2017-06-30 22:42:25 +0200 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2017-10-27 08:45:42 +0200 |
commit | 67b0a17faa5240ee924cd90f496a412339d00356 (patch) | |
tree | ea17116ec1a43fd09122b90ae6471b7cd1bdd2b1 | |
parent | ca08512cff4b3d3340a55036ee151fac8f145255 (diff) | |
download | nx-libs-67b0a17faa5240ee924cd90f496a412339d00356.tar.gz nx-libs-67b0a17faa5240ee924cd90f496a412339d00356.tar.bz2 nx-libs-67b0a17faa5240ee924cd90f496a412339d00356.zip |
nxcomp/Log.h: delete stream_ member before class object destruction.
-rw-r--r-- | nxcomp/src/Log.h | 4 |
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 */ |