diff options
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/impgraph.cxx | 3 |
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(); } |