Related: fdo#69645 don't know if mxParent could become invalid..
after get and before call through mpParent. Probably can't, but I don't know for sure. Change-Id: Ib40e0709f1966687a37cc5b84bae1d554a5b4474
This commit is contained in:
@@ -2060,9 +2060,13 @@ void AnimationNode::fireChangeListener()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//fdo#69645 use get() on WeakReference of mxParent to test if mpParent is still valid
|
//fdo#69645 use WeakReference of mxParent to test if mpParent is still valid
|
||||||
if( mpParent && mxParent.get().is() )
|
if (mpParent)
|
||||||
mpParent->fireChangeListener();
|
{
|
||||||
|
Reference<XInterface> xGuard(mxParent);
|
||||||
|
if (xGuard.is())
|
||||||
|
mpParent->fireChangeListener();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------------------
|
// --------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user