X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0c32066b58849e52e4d76e30982414d9f4daae6a..384b4373c7ce592248284787a97fa2909821e906:/src/common/stream.cpp diff --git a/src/common/stream.cpp b/src/common/stream.cpp index b749b6029f..82bbb35e15 100644 --- a/src/common/stream.cpp +++ b/src/common/stream.cpp @@ -574,6 +574,8 @@ wxFilterInputStream::wxFilterInputStream(wxInputStream& stream) : wxInputStream(NULL) { m_parent_i_stream = &stream; + wxDELETE(m_i_streambuf); // In case m_i_streambuf has been initialized. + m_i_destroybuf = FALSE; m_i_streambuf = stream.InputStreamBuffer(); } @@ -608,6 +610,8 @@ wxFilterOutputStream::wxFilterOutputStream(wxOutputStream& stream) : wxOutputStream(NULL) { m_parent_o_stream = &stream; + wxDELETE(m_o_streambuf); // In case m_o_streambuf has been initialized. + m_o_destroybuf = FALSE; m_o_streambuf = stream.OutputStreamBuffer(); }