summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-31 08:33:56 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-31 14:39:04 +0100
commit50a0bb366da12eab4ac673609c8335102915171c (patch)
tree3b59799e179e269c79edea01669eef2b5e41c516 /chart2/source
parent1e9eca1af58d19820ce61a178bf6049def7cadc7 (diff)
cid#1607783 Data race condition
Change-Id: Ie1a4fac64db52c584c183b132d57c588bcc56567 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175840 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/model/main/ChartModel_Persistence.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/model/main/ChartModel_Persistence.cxx b/chart2/source/model/main/ChartModel_Persistence.cxx
index d508c1de527b..0049bd735954 100644
--- a/chart2/source/model/main/ChartModel_Persistence.cxx
+++ b/chart2/source/model/main/ChartModel_Persistence.cxx
@@ -206,7 +206,7 @@ void SAL_CALL ChartModel::storeSelf( const Sequence< beans::PropertyValue >& rMe
// frame::XStorable (base of XStorable2)
sal_Bool SAL_CALL ChartModel::hasLocation()
{
- //@todo guard
+ std::unique_lock aGuard(m_aLifeTimeManager.m_aAccessMutex);
return !m_aResource.isEmpty();
}