summaryrefslogtreecommitdiff
path: root/vcl/source/image
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2020-01-20 19:35:42 +0000
committerMichael Meeks <michael.meeks@collabora.com>2020-01-21 09:17:06 +0100
commitee32c3e50d2dffa4b41e11e7304b433c430eeb51 (patch)
treec45db67427e22289ba32776fefe4417ea4300c76 /vcl/source/image
parentb92293b3943423324064a8513c2e114d18817179 (diff)
vcl: close UNO streams with closeInput.
We can end up with lingering XBufferedThreadedStreams from the package ZIP code otherwise. Change-Id: I2a489c975b6f460c38317cb0bb93c2aa7ccc383d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87099 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87112 Tested-by: Jenkins
Diffstat (limited to 'vcl/source/image')
-rw-r--r--vcl/source/image/ImplImageTree.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/image/ImplImageTree.cxx b/vcl/source/image/ImplImageTree.cxx
index 59a4e6014464..af91c8fe31fa 100644
--- a/vcl/source/image/ImplImageTree.cxx
+++ b/vcl/source/image/ImplImageTree.cxx
@@ -150,6 +150,7 @@ std::shared_ptr<SvMemoryStream> wrapStream(uno::Reference<io::XInputStream> cons
break;
}
aMemoryStream->Seek(0);
+ rInputStream->closeInput();
return aMemoryStream;
}