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>
This commit is contained in:
Noel Grandin 2022-10-27 18:24:51 +02:00 committed by Noel Grandin
parent 7d63176bcf
commit b4b63d0c46

View file

@ -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