diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2009-01-15 11:40:23 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2009-01-15 11:40:23 +0000 |
commit | 9ee7150985a734fa9504599b301f5f94ad9cd195 (patch) | |
tree | 6de54587c47f55acaa878d3d4b5419399df9a297 /gst | |
parent | f4b2d38c87331798d59296af2d4c6edeff047e66 (diff) |
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.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/spectrum/gstspectrum.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |