comphelper/source/misc/configuration.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit 0d1eefda2a89d0dfb313c1f8fb388d95780ad126 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Thu Oct 27 18:24:51 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Oct 28 11:08:33 2022 +0200 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 <noel.gran...@collabora.co.uk> (cherry picked from commit b4b63d0c46979ad6b6aae5d6a4ea6672ea248e10) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141915 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