mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 19:55:39 +00:00
Bug 1415556 - P5. Use helper to set mDriver. r=padenot
MozReview-Commit-ID: Fres1YwcYYM --HG-- extra : rebase_source : e856357a57708d21e896818095fa1a25085b11a9
This commit is contained in:
parent
95a29ea071
commit
251f706a51
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user