~wxBufferedStream puts back unread bytes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Sylvain Bougnoux 1999-12-14 14:37:24 +00:00
parent c1dd939d3b
commit 672cedf866

View 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;
}