Backed out changeset 443a94083e00 (bug 1294605)

This commit is contained in:
Sebastian Hengst
2016-10-20 20:03:16 +02:00
parent b0a3f2eecc
commit afd79ed980

View File

@@ -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