From b9ea350139b68667f97e0e7f51af862f22dba6d6 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sun, 28 Dec 2008 15:27:00 -0500 Subject: [PATCH] Add missing calls to svn_stream_close(). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ---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 Signed-off-by: Thiago Macieira --- src/svn.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/svn.cpp b/src/svn.cpp index 1e7dcbf..5236579 100644 --- a/src/svn.cpp +++ b/src/svn.cpp @@ -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'); -- 2.45.1