From 3cbe17c83c4846fd57a3f45074864367b5139011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 25 Sep 2024 15:32:59 +0100 Subject: [PATCH] cid#1606825 Data race condition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If2a0385a0b9d7d09c05cacc9bbc1034bd14f53b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173947 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- toolkit/source/controls/grid/defaultgriddatamodel.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/toolkit/source/controls/grid/defaultgriddatamodel.cxx b/toolkit/source/controls/grid/defaultgriddatamodel.cxx index 0eca84e6e5cd..8831f9106115 100644 --- a/toolkit/source/controls/grid/defaultgriddatamodel.cxx +++ b/toolkit/source/controls/grid/defaultgriddatamodel.cxx @@ -496,6 +496,7 @@ private: Reference< css::util::XCloneable > SAL_CALL DefaultGridDataModel::createClone( ) { + std::unique_lock aGuard(m_aMutex); return new DefaultGridDataModel( *this ); }