toolkit/source/controls/animatedimages.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 67c8a696d7ff366efe651beda6e4c4333305dad9
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Wed Sep 11 09:34:32 2024 +0100
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Thu Sep 12 11:10:57 2024 +0200

    cid#1607469 Data race condition
    
    Change-Id: Id9d55ce38c9348c5f8da3ce65af0cd1e0da96196
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173187
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins
    (cherry picked from commit e7da2b370c882d63d9087d2ea646fd9939023506)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173176
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/toolkit/source/controls/animatedimages.cxx 
b/toolkit/source/controls/animatedimages.cxx
index 6b7399f072c6..971d6622130b 100644
--- a/toolkit/source/controls/animatedimages.cxx
+++ b/toolkit/source/controls/animatedimages.cxx
@@ -258,6 +258,7 @@ namespace toolkit {
 
     rtl::Reference<UnoControlModel> AnimatedImagesControlModel::Clone() const
     {
+        std::unique_lock aGuard( m_aMutex );
         return new AnimatedImagesControlModel( *this );
     }
 

Reply via email to