From: Sebastian Dröge Date: Thu, 15 Jan 2009 11:40:23 +0000 (+0000) Subject: gst/spectrum/gstspectrum.c: Don't call gst_fft_f32_free() with NULL to prevent a... X-Git-Tag: 1.19.3~509^2~10816 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ee7150985a734fa9504599b301f5f94ad9cd195;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/ChangeLog b/ChangeLog index 971c080..bbebf50 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-15 Sebastian Dröge + + * 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 * gst/spectrum/gstspectrum.c: (gst_spectrum_transform_ip): diff --git a/gst/spectrum/gstspectrum.c b/gst/spectrum/gstspectrum.c index 2d90fd1..10ada12 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);