chart2/source/model/main/ChartModel.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 91a3facd0deba3c55755cf2bc180822ef33ea881
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Tue Sep 24 19:39:41 2024 +0100
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Fri Sep 27 11:06:30 2024 +0200

    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.mcnam...@collabora.com>
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    (cherry picked from commit bbac45eabed6464f85738e372ea6c2e4f23a11a0)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173916
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

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 ));
 }
 

Reply via email to