diff options
Diffstat (limited to 'xmloff/source/draw/shapeexport.cxx')
-rw-r--r-- | xmloff/source/draw/shapeexport.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx index 059dfa2d6567..93584d1c8f1c 100644 --- a/xmloff/source/draw/shapeexport.cxx +++ b/xmloff/source/draw/shapeexport.cxx @@ -86,6 +86,7 @@ #include <comphelper/storagehelper.hxx> #include <o3tl/any.hxx> +#include <o3tl/make_unique.hxx> #include <o3tl/typed_flags_set.hxx> #include <rtl/math.hxx> @@ -3346,7 +3347,7 @@ void XMLShapeExport::ImpExportMediaShape( mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_MIME_TYPE, sMimeType ); // write plugin - SvXMLElementExport* pPluginOBJ = new SvXMLElementExport(mrExport, XML_NAMESPACE_DRAW, XML_PLUGIN, !( nFeatures & XMLShapeExportFlags::NO_WS ), true); + auto pPluginOBJ = o3tl::make_unique<SvXMLElementExport>(mrExport, XML_NAMESPACE_DRAW, XML_PLUGIN, !( nFeatures & XMLShapeExportFlags::NO_WS ), true); // export parameters const OUString aFalseStr( "false" ), aTrueStr( "true" ); @@ -3398,7 +3399,6 @@ void XMLShapeExport::ImpExportMediaShape( delete( new SvXMLElementExport( mrExport, XML_NAMESPACE_DRAW, XML_PARAM, false, true ) ); } - delete pPluginOBJ; #if HAVE_FEATURE_GLTF if( sMimeType == "model/vnd.gltf+json" ) lcl_StoreGltfFallback(GetExport(), xPropSet, aMediaURL); |