Bug 1415556 - P5. Use helper to set mDriver. r=padenot

MozReview-Commit-ID: Fres1YwcYYM

--HG--
extra : rebase_source : e856357a57708d21e896818095fa1a25085b11a9
This commit is contained in:
Jean-Yves Avenard 2017-11-10 18:28:42 +01:00
parent 95a29ea071
commit 251f706a51

View File

@ -1612,7 +1612,10 @@ public:
// objects owning streams, or for expiration of mGraph->mShutdownTimer,
// which won't otherwise release its reference on the graph until
// nsTimerImpl::Shutdown(), which runs after xpcom-shutdown-threads.
mGraph->mDriver = nullptr;
{
MonitorAutoLock mon(mGraph->mMonitor);
mGraph->SetCurrentDriver(nullptr);
}
// Safe to access these without the monitor since the graph isn't running.
// We may be one of several graphs. Drop ticket to eventually unblock shutdown.