diff options
Diffstat (limited to 'include/xmlscript/xmllib_imexp.hxx')
-rw-r--r-- | include/xmlscript/xmllib_imexp.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/xmlscript/xmllib_imexp.hxx b/include/xmlscript/xmllib_imexp.hxx index 7c13f6a3d6e3..c54324219ecf 100644 --- a/include/xmlscript/xmllib_imexp.hxx +++ b/include/xmlscript/xmllib_imexp.hxx @@ -25,6 +25,8 @@ #include <xmlscript/xmlns.h> #include <xmlscript/xmlscriptdllapi.h> +#include <memory> + namespace xmlscript { @@ -46,7 +48,7 @@ struct XMLSCRIPT_DLLPUBLIC LibDescriptor struct XMLSCRIPT_DLLPUBLIC LibDescriptorArray { - LibDescriptor* mpLibs; + std::unique_ptr<LibDescriptor[]> mpLibs; sal_Int32 mnLibCount; LibDescriptorArray() { mpLibs = nullptr; mnLibCount = 0; } |