Add missing calls to svn_stream_close().
authorAnders Kaseorg <andersk@MIT.EDU>
Sun, 28 Dec 2008 20:27:00 +0000 (28 15:27 -0500)
committerThiago Macieira <thiago@kde.org>
Thu, 8 Jan 2009 15:58:07 +0000 (8 16:58 +0100)
---1257098496-5312088-1230496020=:2755svn_stream_copy() does not automatically close its streams.  (Thatfeature will be added in Subversion 1.6’s svn_stream_copy3().)

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Thiago Macieira <thiago@kde.org>
src/svn.cpp

index 1e7dcbf..5236579 100644 (file)
@@ -271,6 +271,8 @@ static int dumpBlob(Repository::Transaction *txn, svn_fs_root_t *fs_root,
     // open a generic svn_stream_t for the QIODevice
     out_stream = streamForDevice(io, dumppool);
     SVN_ERR(svn_stream_copy(in_stream, out_stream, dumppool));
+    svn_stream_close(out_stream);
+    svn_stream_close(in_stream);
 
     // print an ending newline
     io->putChar('\n');