[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kdecore
From: Malte Starostik <malte () kde ! org>
Date: 2002-12-16 4:41:31
[Download RAW message or body]
CVS commit by malte:
* make the in- and output buffers autodelete in order not to leak everything
ever read from or written to a KBufferedIO "device"
* Don't skip the second buffer in consumeWriteBuffer:
QPtrList::remove() already advances the list's current pointer, the
following call to next() advanced it again.
M +4 -2 kbufferedio.cpp 1.8
--- kdelibs/kdecore/kbufferedio.cpp #1.7:1.8
@@ -90,4 +90,6 @@ KBufferedIO::KBufferedIO() :
inBufIndex(0), outBufIndex(0)
{
+ inBuf.setAutoDelete(true);
+ outBuf.setAutoDelete(true);
}
@@ -217,5 +219,5 @@ void KBufferedIO::consumeWriteBuffer(uns
outBuf.remove();
- while ((buf = outBuf.next()) != NULL)
+ while ((buf = outBuf.current()) != NULL)
if (buf->size() <= nbytes)
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic