summaryrefslogtreecommitdiffstats
path: root/dom/media/MediaStreamGraph.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-09-11 14:48:21 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-09-11 14:48:21 +0200
commit9830cd079d8306abc223461190553af64b6fd0ca (patch)
tree58e5f69b7f484f4539db92e5d72eac9df49f2d06 /dom/media/MediaStreamGraph.cpp
parenta95078a6c6c8ed253c5e279c71462d0d45c1aec3 (diff)
downloadUXP-9830cd079d8306abc223461190553af64b6fd0ca.tar
UXP-9830cd079d8306abc223461190553af64b6fd0ca.tar.gz
UXP-9830cd079d8306abc223461190553af64b6fd0ca.tar.lz
UXP-9830cd079d8306abc223461190553af64b6fd0ca.tar.xz
UXP-9830cd079d8306abc223461190553af64b6fd0ca.zip
Bug 1472925 - Keep a strong reference to MediaStreamGraph from GraphDriver.
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;
}