summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/stable/buffer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stable/buffer.cpp b/src/stable/buffer.cpp
index 26025ba..16c3e2f 100644
--- a/src/stable/buffer.cpp
+++ b/src/stable/buffer.cpp
@@ -25,6 +25,7 @@ Bu::Buffer::Buffer( Bu::Stream &rNext, int iWhat, int iBufSize ) :
25 25
26Bu::Buffer::~Buffer() 26Bu::Buffer::~Buffer()
27{ 27{
28 flush();
28 delete[] sReadBuf; 29 delete[] sReadBuf;
29 delete[] sWriteBuf; 30 delete[] sWriteBuf;
30} 31}
@@ -35,6 +36,7 @@ void Bu::Buffer::start()
35 36
36Bu::size Bu::Buffer::stop() 37Bu::size Bu::Buffer::stop()
37{ 38{
39 flush();
38 iReadBufFill = iReadPos = iWriteBufFill = iWritePos = 0; 40 iReadBufFill = iReadPos = iWriteBufFill = iWritePos = 0;
39 return sSoFar; 41 return sSoFar;
40} 42}