Actually initialize the array
This commit is contained in:
parent
6157865d7b
commit
efa58bb852
|
@ -138,7 +138,7 @@ gst_fastspectrum_alloc_channel_data (GstFastSpectrum * spectrum)
|
|||
spectrum->fft_output =reinterpret_cast<fftw_complex*>(
|
||||
fftw_malloc(sizeof(fftw_complex) * (nfft/2+1)));
|
||||
|
||||
spectrum->spect_magnitude = new double[bands]();
|
||||
spectrum->spect_magnitude = new double[bands]{};
|
||||
|
||||
GstFastSpectrumClass* klass = reinterpret_cast<GstFastSpectrumClass*>(
|
||||
G_OBJECT_GET_CLASS(spectrum));
|
||||
|
|
Loading…
Reference in New Issue