toolkit/source/controls/grid/defaultgriddatamodel.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit f217a3605311281791d2c7452771941eb9db4b24 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Wed Sep 25 15:32:59 2024 +0100 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Thu Sep 26 10:41:54 2024 +0200 cid#1606825 Data race condition Change-Id: If2a0385a0b9d7d09c05cacc9bbc1034bd14f53b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173947 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> (cherry picked from commit 3cbe17c83c4846fd57a3f45074864367b5139011) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173918 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/toolkit/source/controls/grid/defaultgriddatamodel.cxx b/toolkit/source/controls/grid/defaultgriddatamodel.cxx index 83d15eb6dcec..1b2bad263ff4 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 ); }