mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
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.
This commit is contained in:
parent
82b7cfd662
commit
463cd1466b
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-01-18 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* gst/equalizer/gstiirequalizer.c: (gst_iir_equalizer_finalize):
|
||||
Unparent all bands from the equalizer when finalizing to stop
|
||||
leaking them.
|
||||
|
||||
2008-01-18 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* ext/soup/gstsouphttpsrc.c: (gst_souphttp_src_uri_get_protocols):
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue