Commit 9ee71509 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

gst/spectrum/gstspectrum.c: Don't call gst_fft_f32_free() with NULL to prevent...

gst/spectrum/gstspectrum.c: Don't call gst_fft_f32_free() with NULL to prevent a crash. Fixes bug #567642.

Original commit message from CVS:
* gst/spectrum/gstspectrum.c: (gst_spectrum_reset_state):
Don't call gst_fft_f32_free() with NULL to prevent a
crash. Fixes bug #567642.
parent f4b2d38c
2009-01-15 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* gst/spectrum/gstspectrum.c: (gst_spectrum_reset_state):
Don't call gst_fft_f32_free() with NULL to prevent a
crash. Fixes bug #567642.
2009-01-14 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* gst/spectrum/gstspectrum.c: (gst_spectrum_transform_ip):
......
......@@ -261,7 +261,8 @@ gst_spectrum_init (GstSpectrum * spectrum, GstSpectrumClass * g_class)
static void
gst_spectrum_reset_state (GstSpectrum * spectrum)
{
gst_fft_f32_free (spectrum->fft_ctx);
if (spectrum->fft_ctx)
gst_fft_f32_free (spectrum->fft_ctx);
g_free (spectrum->input);
g_free (spectrum->input_tmp);
g_free (spectrum->freqdata);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment