mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
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:
parent
63085257a7
commit
dcaef5c6ee
2 changed files with 1 additions and 4 deletions
|
|
@ -1157,8 +1157,7 @@ OutStream::OutStream()
|
|||
}
|
||||
|
||||
OutStream::~OutStream()
|
||||
{
|
||||
Close();
|
||||
{ // Note: cannot call Close here !
|
||||
delete[] h;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -551,8 +551,6 @@ private:
|
|||
Stream& b;
|
||||
|
||||
public:
|
||||
void Close() { Flush(); }
|
||||
|
||||
TeeStream(Stream& a, Stream& b) : a(a), b(b) {}
|
||||
~TeeStream() { Close(); }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue