Bug 1472925 - Keep a strong reference to MediaStreamGraph from GraphDriver.

This commit is contained in:
wolfbeast 2018-09-11 14:48:21 +02:00 • committed by Roy Tam
commit 44998d1f5b
3 changed files with 9 additions and 8 deletions

View file

@ -3371,7 +3371,8 @@ MediaStreamGraphImpl::Destroy()
// First unregister from memory reporting.
UnregisterWeakMemoryReporter(this);
// Clear the self reference which will destroy this instance.
// Clear the self reference which will destroy this instance if all
// associated GraphDrivers are destroyed.
mSelfRef = nullptr;
}