diff --git a/mozilla/dom/media/MediaEventSource.h b/mozilla/dom/media/MediaEventSource.h index cd5ad25..aa31f53 100644 --- a/mozilla/dom/media/MediaEventSource.h +++ b/mozilla/dom/media/MediaEventSource.h @@ -339,8 +339,10 @@ public: } void Disconnect() { - mToken->Revoke(); - mToken = nullptr; + if (mToken != nullptr) { + mToken->Revoke(); + mToken = nullptr; + } } private: