summaryrefslogtreecommitdiff
path: root/sw/source/core/graphic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-30 10:06:35 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-11-30 21:23:26 +0100
commit9310a64bbe36b7a2a2d7c51ca6386590883b5044 (patch)
treeb99601daf3f3d6ff1f03126b4e6b1ecf55716a69 /sw/source/core/graphic
parentb15f79a8f8de27c9d186ae1fbd0c86f194aed0ac (diff)
coverity#1401344 Uncaught exception
Change-Id: Ia102856797e08ff805958f56d2c468eb39aa937d Reviewed-on: https://gerrit.libreoffice.org/45582 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/core/graphic')
-rw-r--r--sw/source/core/graphic/ndgrf.cxx3
1 files changed, 2 insertions, 1 deletions
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 );