*** empty log message ***
[wxWidgets.git] / src / common / stream.cpp
index 6d3b4edcd5b326bfe3eb10cecd55b30d8c225041..2c105915173bbd6ce9a37d7aabbb1b4450b07f83 100644 (file)
@@ -803,6 +803,9 @@ wxBufferedInputStream::wxBufferedInputStream(wxInputStream& s)
 
 wxBufferedInputStream::~wxBufferedInputStream()
 {
+  off_t unused_bytes=m_i_streambuf->GetBufferPos()-m_i_streambuf->GetBufferEnd();
+  m_parent_i_stream->SeekI(unused_bytes,wxFromCurrent);
+
   delete m_i_streambuf;
 }