summaryrefslogtreecommitdiff
path: root/sot/source
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source')
-rw-r--r--sot/source/base/exchange.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx
index 061a794af57c..c7048b166c6f 100644
--- a/sot/source/base/exchange.cxx
+++ b/sot/source/base/exchange.cxx
@@ -21,6 +21,7 @@
#include <tools/debug.hxx>
#include <tools/globname.hxx>
+#include <tools/lazydelete.hxx>
#include <sot/exchange.hxx>
#include <sot/formats.hxx>
#include <comphelper/classids.hxx>
@@ -210,9 +211,9 @@ const DataFlavorRepresentation* FormatArray_Impl()
static tDataFlavorList& InitFormats_Impl()
{
- static tDataFlavorList gImplData;
+ static tools::DeleteOnDeinit<tDataFlavorList> gImplData;
- return gImplData;
+ return *gImplData.get();
}
/*************************************************************************