From 0fbaff8f022a5d1a09a22dbfc6395c458bfc5bfd Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 13 Feb 2023 18:07:00 +0200 Subject: enforce proper locking when calling OInterfaceContainerHelper4 Change-Id: Ic86305f3d16148925c7753200a687f36f08a6516 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146936 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/control/unoctitm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfx2') diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index bcee2360e268..50b238d7a5d3 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -123,7 +123,7 @@ void SfxStatusDispatcher::ReleaseAll() void SfxStatusDispatcher::sendStatusChanged(const OUString& rURL, const css::frame::FeatureStateEvent& rEvent) { std::unique_lock aGuard(maMutex); - ::comphelper::OInterfaceContainerHelper4* pContnr = maListeners.getContainer(rURL); + ::comphelper::OInterfaceContainerHelper4* pContnr = maListeners.getContainer(aGuard, rURL); if (!pContnr) return; pContnr->forEach(aGuard, -- cgit