From 91937bb4168bdd1e50c1bb7fdbaeb6cee41d62f6 Mon Sep 17 00:00:00 2001 From: Craig Dowell Date: Wed, 24 Feb 2010 13:42:12 -0800 Subject: [PATCH] plug possible leak --- src/common/output-stream-wrapper.cc | 1 + 1 file changed, 1 insertion(+) 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; }