diff --git a/gst/moodbar/gstfastspectrum.cpp b/gst/moodbar/gstfastspectrum.cpp index 6db133107..0d1c1303c 100644 --- a/gst/moodbar/gstfastspectrum.cpp +++ b/gst/moodbar/gstfastspectrum.cpp @@ -138,7 +138,7 @@ gst_fastspectrum_alloc_channel_data (GstFastSpectrum * spectrum) spectrum->fft_output =reinterpret_cast( fftw_malloc(sizeof(fftw_complex) * (nfft/2+1))); - spectrum->spect_magnitude = new double[bands]; + spectrum->spect_magnitude = new double[bands]{}; GstFastSpectrumClass* klass = reinterpret_cast( G_OBJECT_GET_CLASS(spectrum));