diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-10-27 18:24:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-28 11:08:33 +0200 |
commit | 0d1eefda2a89d0dfb313c1f8fb388d95780ad126 (patch) | |
tree | 49b9858a3988896d97ee0640afafe588a1554292 | |
parent | b05c289cf0278ff9737dd928c5a97611e69219a8 (diff) |
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.grandin@collabora.co.uk>
(cherry picked from commit b4b63d0c46979ad6b6aae5d6a4ea6672ea248e10)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141915
-rw-r--r-- | comphelper/source/misc/configuration.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
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 |