Bug 1232646 - initialize 3 variables: mCurve, mTimeConstant, mDuration. r=cpearce
authorBogdan Postelnicu <bogdan.postelnicu>
Tue, 15 Dec 2015 05:21:00 +0100
changeset 315804 ec15b39b21808ddf8f069ddc592fd473f4f57fe0
parent 315803 d74d1e794421ff31fc433a8a0bc19b4cfc0153ab
child 315805 14b8a98aff19b6771114ba87f88a99a05aec9a6b
push id8468
push userhurley@todesschaf.org
push dateWed, 16 Dec 2015 19:25:06 +0000
reviewerscpearce
bugs1232646
milestone46.0a1
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)
   {