Bug 1305674 - initialize mUpdateCueDisplayDispatched. r=mrbkap
authorPaul Bignier <paul.bignier@gmail.com>
Tue, 27 Sep 2016 12:19:17 +0200
changeset 315835 14ed574a5c7c5515efb306bdb19f726073725993
parent 315834 a70dda2a48b40683107eacf133e4ba27cf86dba1
child 315836 e4f89ad97215bf1c9b90d0bb3ad6d1961b38e170
push id20634
push usercbook@mozilla.com
push dateFri, 30 Sep 2016 10:10:13 +0000
treeherderfx-team@afe79b010d13 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs1305674
milestone52.0a1
Bug 1305674 - initialize mUpdateCueDisplayDispatched. r=mrbkap * There is no visible initializer function to that class so the variable could be accessed to, uninitialized
dom/html/TextTrackManager.cpp
--- a/dom/html/TextTrackManager.cpp
+++ b/dom/html/TextTrackManager.cpp
@@ -96,16 +96,17 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(TextTra
 
 StaticRefPtr<nsIWebVTTParserWrapper> TextTrackManager::sParserWrapper;
 
 TextTrackManager::TextTrackManager(HTMLMediaElement *aMediaElement)
   : mMediaElement(aMediaElement)
   , mHasSeeked(false)
   , mLastTimeMarchesOnCalled(0.0)
   , mTimeMarchesOnDispatched(false)
+  , mUpdateCueDisplayDispatched(false)
   , performedTrackSelection(false)
   , mCueTelemetryReported(false)
   , mShutdown(false)
 {
   nsISupports* parentObject =
     mMediaElement->OwnerDoc()->GetParentObject();
 
   NS_ENSURE_TRUE_VOID(parentObject);