cid#1608448 Data race condition

drop mutex, only allowed to be called from ctor

Change-Id: I1878cf368caacafdcee96a7112a6cc768ce87520
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174207
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara 2024-09-28 19:56:51 +01:00
parent 73db214e2f
commit 989bee48c2

View file

@ -45,13 +45,9 @@ void BaseContainer::init(const OUString&
const css::uno::Sequence< OUString >& lServiceNames , const css::uno::Sequence< OUString >& lServiceNames ,
FilterCache::EItemType eType ) FilterCache::EItemType eType )
{ {
// SAFE ->
std::unique_lock aLock(m_aMutex);
m_sImplementationName = sImplementationName; m_sImplementationName = sImplementationName;
m_lServiceNames = lServiceNames ; m_lServiceNames = lServiceNames ;
m_eType = eType ; m_eType = eType ;
// <- SAFE
} }