From faf983e89a15b9d40e336ee32d5884521dbe6647 Mon Sep 17 00:00:00 2001 From: Sebastian Hengst Date: Thu, 20 Oct 2016 20:03:16 +0200 Subject: [PATCH] Backed out changeset 443a94083e00 (bug 1294605) --- dom/html/HTMLMediaElement.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp index 538290a7a6d2..c3bcdd21715d 100644 --- a/dom/html/HTMLMediaElement.cpp +++ b/dom/html/HTMLMediaElement.cpp @@ -2210,11 +2210,15 @@ public: nsString()) , mCapturedTrackSource(aCapturedTrackSource) { + mCapturedTrackSource->RegisterSink(this); } void Destroy() override { MOZ_ASSERT(mCapturedTrackSource); + if (mCapturedTrackSource) { + mCapturedTrackSource->UnregisterSink(this); + } } MediaSourceEnum GetMediaSource() const override