projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
*** empty log message ***
[wxWidgets.git]
/
src
/
common
/
stream.cpp
diff --git
a/src/common/stream.cpp
b/src/common/stream.cpp
index 6d3b4edcd5b326bfe3eb10cecd55b30d8c225041..2c105915173bbd6ce9a37d7aabbb1b4450b07f83 100644
(file)
--- 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;
}