diff --git a/src/common/output-stream-wrapper.cc b/src/common/output-stream-wrapper.cc index 93bcc7381..936410e8f 100644 --- a/src/common/output-stream-wrapper.cc +++ b/src/common/output-stream-wrapper.cc @@ -37,6 +37,7 @@ OutputStreamWrapper::~OutputStreamWrapper () void OutputStreamWrapper::SetStream (std::ostream *ostream) { + delete m_ostream; m_ostream = ostream; }