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-27 21:03:29 +0200 |
commit | b4b63d0c46979ad6b6aae5d6a4ea6672ea248e10 (patch) | |
tree | 5a059ea9f0db92f3d65c39a5dbf091b5d823f03a /comphelper | |
parent | 7d63176bcfbc80fc4045a0f0580c5bf9ccea7a89 (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>
Diffstat (limited to 'comphelper')
-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 |