mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 836599 - Part 6: Make MediaStreamGraphImpl::AppendMessage not assume that it's the only graph; r=roc
This commit is contained in:
parent
cf993195fa
commit
94e4ec56db
@ -1314,10 +1314,11 @@ MediaStreamGraphImpl::AppendMessage(ControlMessage* aMessage)
|
||||
aMessage->RunDuringShutdown();
|
||||
delete aMessage;
|
||||
if (IsEmpty()) {
|
||||
NS_ASSERTION(gGraph == this, "Switched managers during forced shutdown?");
|
||||
if (gGraph == this) {
|
||||
gGraph = nullptr;
|
||||
delete this;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user