summaryrefslogtreecommitdiff
path: root/chart2/source/model/main
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-24 19:39:41 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-25 15:37:54 +0200
commitbbac45eabed6464f85738e372ea6c2e4f23a11a0 (patch)
treeb1d835ac0607e12799cd3e22a9f5529572a01f68 /chart2/source/model/main
parentc30fa95c5d0e03c523d22d01be3ae4ce3b79c723 (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>
Diffstat (limited to 'chart2/source/model/main')
-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 ));
}