From b4b63d0c46979ad6b6aae5d6a4ea6672ea248e10 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 27 Oct 2022 18:24:51 +0200 Subject: [PATCH] try to fix some shutdown crashes seen in 7.4 crash reports Change-Id: I4c88d485e2e1925895f23861232823ebe97c0c8a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141936 Tested-by: Jenkins Reviewed-by: Noel Grandin --- comphelper/source/misc/configuration.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/comphelper/source/misc/configuration.cxx b/comphelper/source/misc/configuration.cxx index 097eabb6a345..1d6517fbb26d 100644 --- a/comphelper/source/misc/configuration.cxx +++ b/comphelper/source/misc/configuration.cxx @@ -128,7 +128,11 @@ public: std::scoped_lock aGuard(gMutex); gPropertyCache.clear(); } - virtual void SAL_CALL disposing(const css::lang::EventObject&) override {} + virtual void SAL_CALL disposing(const css::lang::EventObject&) override + { + std::scoped_lock aGuard(gMutex); + gPropertyCache.clear(); + } }; } // namespace