filter/source/config/cache/filterfactory.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 156d7d72c2c979ab7ef8bc3455c1f3129d057629
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Tue Apr 22 08:00:30 2025 +0200
Commit:     Noel Grandin <noelgran...@gmail.com>
CommitDate: Tue Apr 22 10:22:26 2025 +0200

    use tools::DeleteOnDeInit for FilterCache
    
    seems it can otherwise sometimes crash during teardown
    
    Change-Id: If1a06335bdd5feccadaae5a7f8a7828864b556cd
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184423
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/filter/source/config/cache/filterfactory.cxx 
b/filter/source/config/cache/filterfactory.cxx
index 086df9616c3c..39ec635a52f7 100644
--- a/filter/source/config/cache/filterfactory.cxx
+++ b/filter/source/config/cache/filterfactory.cxx
@@ -26,14 +26,15 @@
 #include <comphelper/sequence.hxx>
 #include <officecfg/Setup.hxx>
 #include <officecfg/TypeDetection/UISort.hxx>
+#include <tools/lazydelete.hxx>
 
 
 namespace filter::config{
 
 FilterCache& GetTheFilterCache()
 {
-    static FilterCache CACHE;
-    return CACHE;
+    static tools::DeleteOnDeinit<FilterCache> CACHE;
+    return *CACHE.get();
 }
 
 /** @short  define all possible parts of a filter query.

Reply via email to