summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-15 20:43:23 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-16 09:53:01 +0200
commit30be1d807d4e1fbec73d92d7740490b69e0bb751 (patch)
tree5b8ba6983c0b56577669256163dcc0538bebb57f /vcl
parent44e1bc0f0eff27846703c697fc45c67e46922881 (diff)
cid#1607350 Data race condition
Change-Id: Ibd30f03513661762613cc0b386acc48eb994bc2c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173422 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/components/dtranscomp.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/components/dtranscomp.cxx b/vcl/source/components/dtranscomp.cxx
index bb771b2dca81..9621154d0537 100644
--- a/vcl/source/components/dtranscomp.cxx
+++ b/vcl/source/components/dtranscomp.cxx
@@ -133,6 +133,7 @@ sal_Bool GenericClipboard::supportsService( const OUString& ServiceName )
Reference< css::datatransfer::XTransferable > GenericClipboard::getContents()
{
+ std::unique_lock aGuard(m_aMutex);
return m_aContents;
}