Commit 6fcf22d5 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

gst/equalizer/gstiirequalizer.c: Unparent all bands from the equalizer when...

gst/equalizer/gstiirequalizer.c: Unparent all bands from the equalizer when finalizing to stop leaking	them.

Original commit message from CVS:
* gst/equalizer/gstiirequalizer.c: (gst_iir_equalizer_finalize):
Unparent all bands from the equalizer when finalizing to stop
leaking	them.
parent 5761e2f2
......@@ -340,6 +340,14 @@ static void
gst_iir_equalizer_finalize (GObject * object)
{
GstIirEqualizer *equ = GST_IIR_EQUALIZER (object);
gint i;
for (i = 0; i < equ->freq_band_count; i++) {
if (equ->bands[i])
gst_object_unparent (GST_OBJECT (equ->bands[i]));
equ->bands[i] = NULL;
}
equ->freq_band_count = 0;
g_free (equ->bands);
g_free (equ->history);
......
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