From 9ee7150985a734fa9504599b301f5f94ad9cd195 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Thu, 15 Jan 2009 11:40:23 +0000 Subject: 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. --- gst/spectrum/gstspectrum.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gst/spectrum') diff --git a/gst/spectrum/gstspectrum.c b/gst/spectrum/gstspectrum.c index 2d90fd19..10ada123 100644 --- a/gst/spectrum/gstspectrum.c +++ b/gst/spectrum/gstspectrum.c @@ -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); -- cgit