Bug 1232646 - initialize 3 variables: mCurve, mTimeConstant, mDuration. r=cpearce
authorBogdan Postelnicu <bogdan.postelnicu>
Tue, 15 Dec 2015 05:21:00 +0100
changeset 276653 ec15b39b21808ddf8f069ddc592fd473f4f57fe0
parent 276652 d74d1e794421ff31fc433a8a0bc19b4cfc0153ab
child 276654 14b8a98aff19b6771114ba87f88a99a05aec9a6b
push id29806
push usercbook@mozilla.com
push dateThu, 17 Dec 2015 10:59:52 +0000
treeherdermozilla-central@0711218a018d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce
bugs1232646
milestone46.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1232646 - initialize 3 variables: mCurve, mTimeConstant, mDuration. r=cpearce
dom/media/webaudio/AudioEventTimeline.h
--- a/dom/media/webaudio/AudioEventTimeline.h
+++ b/dom/media/webaudio/AudioEventTimeline.h
@@ -53,17 +53,20 @@ struct AudioTimelineEvent final
       SetCurveParams(aCurve, aCurveLength);
     } else {
       mValue = aValue;
     }
   }
 
   explicit AudioTimelineEvent(MediaStream* aStream)
     : mType(Stream)
+    , mCurve(nullptr)
     , mStream(aStream)
+    , mTimeConstant(0.0)
+    , mDuration(0.0)
 #ifdef DEBUG
     , mTimeIsInTicks(false)
 #endif
   {
   }
 
   AudioTimelineEvent(const AudioTimelineEvent& rhs)
   {