cid#1555171 double-locked-pattern Data race condition

Change-Id: I2ef54091535cf511a74e19a037647d5baff9a825
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174971
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara 2024-10-15 12:39:10 +01:00
parent 0e97c24f23
commit 013b832878

View file

@ -296,7 +296,6 @@ Reference< XInterface > OInstanceProvider::getInstance( const OUString & rName )
}
else if (_bSingleInstance)
{
if (! _xSingleInstance.is())
{
std::lock_guard aGuard( _aSingleInstanceMutex );
if (! _xSingleInstance.is())