sfx2/source/doc/objserv.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 44f12b806521a90a9f8fd79674ed716cf5f2ccec Author: Caolán McNamara <[email protected]> Date: Wed Mar 8 13:16:51 2017 +0000 valgrind: fix leak Change-Id: I49a9a03ef59bca5a5c43d2835e6c4f1cbf0cfab8 diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 96fb4e0..2ac1ccd 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -1279,7 +1279,7 @@ uno::Sequence< security::DocumentSignatureInformation > SfxObjectShell::ImplAnal else { // Not ZIP-based, e.g. PDF. - SvStream* pStream = utl::UcbStreamHelper::CreateStream(GetMedium()->GetName(), StreamMode::READ); + std::unique_ptr<SvStream> pStream(utl::UcbStreamHelper::CreateStream(GetMedium()->GetName(), StreamMode::READ)); uno::Reference<io::XStream> xStream(new utl::OStreamWrapper(*pStream)); uno::Reference<io::XInputStream> xInputStream(xStream, uno::UNO_QUERY); aResult = xLocSigner->verifyDocumentContentSignatures(uno::Reference<embed::XStorage>(), xInputStream);
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
