Core: Fixed problem with OutStream destructor

git-svn-id: svn://ultimatepp.org/upp/trunk@11486 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-11-20 10:10:19 +00:00
parent 63085257a7
commit dcaef5c6ee
2 changed files with 1 additions and 4 deletions

View file

@ -1157,8 +1157,7 @@ OutStream::OutStream()
}
OutStream::~OutStream()
{
Close();
{ // Note: cannot call Close here !
delete[] h;
}

View file

@ -551,8 +551,6 @@ private:
Stream& b;
public:
void Close() { Flush(); }
TeeStream(Stream& a, Stream& b) : a(a), b(b) {}
~TeeStream() { Close(); }
};