]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stream.cpp
Added #include to get FIONBIO on Solaris 2.6
[wxWidgets.git] / src / common / stream.cpp
index b749b6029f338281830b2ea02579bc4dea839aaf..82bbb35e15748f784cd3c9ef8c5b1cc8d85deeae 100644 (file)
@@ -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();
 }