summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-01 15:16:56 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-02 21:13:47 +0200
commit02f01fea46f3697b59a9b37870c51d23ff406530 (patch)
treedd491495433fabb422bf25e37e8a2233f9618e1f /sd
parente589ea5eb50dcc1a6894084df3cdaa02060835b9 (diff)
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.mcnamara@collabora.com> Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/unoidl/randomnode.cxx1
1 files changed, 1 insertions, 0 deletions
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;
}