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>
This commit is contained in:
Caolán McNamara 2017-11-30 10:06:35 +00:00
parent b15f79a8f8
commit 9310a64bbe

View file

@ -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 );