sd/source/ui/unoidl/randomnode.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 02f01fea46f3697b59a9b37870c51d23ff406530
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sun Sep 1 15:16:56 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Mon Sep 2 21:13:47 2024 +0200

    cid#1608532 Data race condition
    
    and a bunch of dups
    
    Change-Id: I700cd803b9550a0577604ebe0f4fbe16d56aa6a5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172769
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sd/source/ui/unoidl/randomnode.cxx 
b/sd/source/ui/unoidl/randomnode.cxx
index 075fbf583b7b..d8f0fda1d80a 100644
--- a/sd/source/ui/unoidl/randomnode.cxx
+++ b/sd/source/ui/unoidl/randomnode.cxx
@@ -431,6 +431,7 @@ void SAL_CALL RandomAnimationNode::setParent( const 
Reference< XInterface >& Par
 // XCloneable
 Reference< XCloneable > SAL_CALL RandomAnimationNode::createClone()
 {
+    std::unique_lock aGuard( maMutex );
     Reference< XCloneable > xNewNode( new RandomAnimationNode( *this ) );
     return xNewNode;
 }

Reply via email to