summaryrefslogtreecommitdiffstats
path: root/dom/media/MediaStreamGraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/MediaStreamGraph.cpp')
-rw-r--r--dom/media/MediaStreamGraph.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/media/MediaStreamGraph.cpp b/dom/media/MediaStreamGraph.cpp
index e2934cbb2..1b9e4f674 100644
--- a/dom/media/MediaStreamGraph.cpp
+++ b/dom/media/MediaStreamGraph.cpp
@@ -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;
}