~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:
parent
c1dd939d3b
commit
672cedf866
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user