summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-11-11 10:49:14 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-11-17 15:41:46 +0100
commited8514af4930fdf67f0f213f62551dbbec45af83 (patch)
treece1aa024b7daee33af67051ba1435b28e2a0aa2b /desktop/source
parentc3c337c9506ab9b908f2f91983bb3ee4caa26b3f (diff)
cid#1607905 Data race condition
Change-Id: Idb525a4e19cfbe0c4a493f511be7dadafac0cff5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176465 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/offacc/acceptor.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop/source/offacc/acceptor.cxx b/desktop/source/offacc/acceptor.cxx
index 5dbecd0f1254..2c51a73c1199 100644
--- a/desktop/source/offacc/acceptor.cxx
+++ b/desktop/source/offacc/acceptor.cxx
@@ -117,10 +117,9 @@ void Acceptor::run()
// create the bridge. The remote end will have a reference to this bridge
// thus preventing the bridge from being disposed. When the remote end releases
// the bridge, it will be destructed.
- Reference< XBridge > rBridge = m_rBridgeFactory->createBridge(
- u""_ustr, m_aProtocol, rConnection, rInstanceProvider);
std::unique_lock g(m_aMutex);
- m_bridges.add(rBridge);
+ m_bridges.add(m_rBridgeFactory->createBridge(
+ u""_ustr, m_aProtocol, rConnection, rInstanceProvider));
} catch (const Exception&) {
TOOLS_WARN_EXCEPTION("desktop.offacc", "");
// connection failed...