[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Thu Nov 30 20:24:20 UTC 2017
sw/source/core/graphic/ndgrf.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 9310a64bbe36b7a2a2d7c51ca6386590883b5044
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Nov 30 10:06:35 2017 +0000
coverity#1401344 Uncaught exception
Change-Id: Ia102856797e08ff805958f56d2c468eb39aa937d
Reviewed-on: https://gerrit.libreoffice.org/45582
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index 7ef061715ba8..98426d77745f 100644
--- a/sw/source/core/graphic/ndgrf.cxx
+++ b/sw/source/core/graphic/ndgrf.cxx
@@ -51,6 +51,7 @@
#include <rtl/ustring.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <com/sun/star/embed/ElementModes.hpp>
+#include <o3tl/deleter.hxx>
#include <vcl/svapp.hxx>
#include <retrieveinputstreamconsumer.hxx>
#include <drawinglayer/processor2d/objectinfoextractor2d.hxx>
@@ -1121,7 +1122,7 @@ void SwGrfNode::TriggerAsyncRetrieveInputStream()
if ( mpThreadConsumer.get() == nullptr )
{
- mpThreadConsumer.reset( new SwAsyncRetrieveInputStreamThreadConsumer( *this ) );
+ mpThreadConsumer.reset(new SwAsyncRetrieveInputStreamThreadConsumer(*this), o3tl::default_delete<SwAsyncRetrieveInputStreamThreadConsumer>());
OUString sGrfNm;
sfx2::LinkManager::GetDisplayNames( refLink.get(), nullptr, &sGrfNm );
More information about the Libreoffice-commits
mailing list