From 30be1d807d4e1fbec73d92d7740490b69e0bb751 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 15 Sep 2024 20:43:23 +0100 Subject: cid#1607350 Data race condition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ibd30f03513661762613cc0b386acc48eb994bc2c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173422 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/source/components/dtranscomp.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'vcl/source/components') 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; } -- cgit