From 1563162131ae00cd2a33c59349567a7b820dc5db Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 5 Nov 2013 11:45:52 +0000 Subject: Resolves: fdo#69645 Parent Node disposed and mpParent pointing to junk mpParent points the contents of mxParent which is a WeakReference, so we can check if the WeakReference is still valid before using mpParent Change-Id: I40424714865e506b8cf27017539795eb834e10d2 --- animations/source/animcore/animcore.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'animations') diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx index 6678893c95fb..089c868cc60b 100644 --- a/animations/source/animcore/animcore.cxx +++ b/animations/source/animcore/animcore.cxx @@ -2060,7 +2060,8 @@ void AnimationNode::fireChangeListener() } } - if( mpParent ) + //fdo#69645 use get() on WeakReference of mxParent to test if mpParent is still valid + if( mpParent && mxParent.get().is() ) mpParent->fireChangeListener(); } -- cgit