diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-11-05 11:45:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-11-05 11:47:39 +0000 |
commit | 1563162131ae00cd2a33c59349567a7b820dc5db (patch) | |
tree | 952ac06db3976e483c5ce0db5e824283b71bb5c7 /animations | |
parent | 3d65dfa3c98e0f79c579cfac23d55092f7554244 (diff) |
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
Diffstat (limited to 'animations')
-rw-r--r-- | animations/source/animcore/animcore.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } |