summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-24 19:39:41 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2024-09-27 11:06:30 +0200
commit91a3facd0deba3c55755cf2bc180822ef33ea881 (patch)
treefae733ec160e86c10bbdc49013f13c88142c5025 /chart2
parent5f76f598b613dd209149988d29a90f86be45c8fe (diff)
cid#1606887 Data race condition
and cid#1607140 Data race condition Change-Id: Ie27b42012b945bfad0c7344c734dc0b8f0816e70 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173898 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> (cherry picked from commit bbac45eabed6464f85738e372ea6c2e4f23a11a0) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173916 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/model/main/ChartModel.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx
index 4e97f9c99820..022446666c2b 100644
--- a/chart2/source/model/main/ChartModel.cxx
+++ b/chart2/source/model/main/ChartModel.cxx
@@ -995,6 +995,7 @@ uno::Any SAL_CALL ChartModel::queryInterface( const uno::Type& aType )
// ____ XCloneable ____
Reference< util::XCloneable > SAL_CALL ChartModel::createClone()
{
+ std::unique_lock aGuard(m_aLifeTimeManager.m_aAccessMutex);
return Reference< util::XCloneable >( new ChartModel( *this ));
}