summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-04-23 20:25:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-04-24 11:30:14 +0200
commitb21d2fde299031708adba8ee652e2734287e83a8 (patch)
tree2352920794ca8ee6f6d270704e925f56a8c87ad6 /vcl/source
parentc69d4edf61a2647ba8d6104c743e5f2d2cbc4229 (diff)
cid#1455212 Uncaught exception
Change-Id: I555a288de1da8de85fde03a90a31cab48ff060cc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92826 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/gdi/impgraph.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx
index 9deb69a836e4..dd4f2cdebd58 100644
--- a/vcl/source/gdi/impgraph.cxx
+++ b/vcl/source/gdi/impgraph.cxx
@@ -21,6 +21,7 @@
#include <sal/log.hxx>
#include <comphelper/fileformat.h>
+#include <o3tl/deleter.hxx>
#include <tools/fract.hxx>
#include <tools/vcompat.hxx>
#include <tools/urlobj.hxx>
@@ -1328,7 +1329,7 @@ bool ImpGraphic::ImplSwapOut()
bool bRet = ImplSwapOut( xOStm.get() );
if( bRet )
{
- mpSwapFile = std::make_shared<ImpSwapFile>();
+ mpSwapFile.reset(new ImpSwapFile, o3tl::default_delete<ImpSwapFile>());
mpSwapFile->aSwapURL = aTmpURL;
mpSwapFile->maOriginURL = getOriginURL();
}