Bug 836599 - Part 6: Make MediaStreamGraphImpl::AppendMessage not assume that it's the only graph; r=roc

This commit is contained in:
Ehsan Akhgari 2013-02-04 12:29:14 -05:00
parent cf993195fa
commit 94e4ec56db

View File

@ -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;
}