Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37708018
en ru br
ALT Linux repos
S:115.3.1-alt1

Group :: Networking/WWW
RPM: firefox-esr

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: firefox-mediasource-crash.patch
Download


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:
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin