summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--gst/spectrum/gstspectrum.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 971c08088..bbebf507c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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):
diff --git a/gst/spectrum/gstspectrum.c b/gst/spectrum/gstspectrum.c
index 2d90fd199..10ada1230 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);