mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 990290 - Null-check AudioNode's mContext during unlink. r=ehsan
Unlink can happen twice, apparently.
This commit is contained in:
parent
2c9355e7c3
commit
9ecf305fd1
@ -19,7 +19,9 @@ NS_IMPL_CYCLE_COLLECTION_CLASS(AudioNode)
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(AudioNode, DOMEventTargetHelper)
|
||||
tmp->DisconnectFromGraph();
|
||||
tmp->mContext->UpdateNodeCount(-1);
|
||||
if (tmp->mContext) {
|
||||
tmp->mContext->UpdateNodeCount(-1);
|
||||
}
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK(mContext)
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK(mOutputNodes)
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK(mOutputParams)
|
||||
|
Loading…
Reference in New Issue
Block a user