From 672cedf8665a6a8a12cea90a4883c729ce6a04f5 Mon Sep 17 00:00:00 2001 From: Sylvain Bougnoux Date: Tue, 14 Dec 1999 14:37:24 +0000 Subject: [PATCH] ~wxBufferedStream puts back unread bytes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/stream.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/stream.cpp b/src/common/stream.cpp index 6d3b4edcd5..2c10591517 100644 --- a/src/common/stream.cpp +++ b/src/common/stream.cpp @@ -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; } -- 2.45.2