+2006-01-10 Michael Smith <msmith@fluendo.com>
+
+ * gst/level/gstlevel.c: (gst_level_class_init),
+ (gst_level_dispose):
+ Don't leak filter arrays.
+
2006-01-09 Brian Cameron <brian.cameron@sun.com>
reviewed by: Christian Schaller <uraeus@gnome.org>
const GValue * value, GParamSpec * pspec);
static void gst_level_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
+static void gst_level_dispose (GObject * obj);
static gboolean gst_level_set_caps (GstBaseTransform * trans, GstCaps * in,
GstCaps * out);
gobject_class->set_property = gst_level_set_property;
gobject_class->get_property = gst_level_get_property;
+ gobject_class->dispose = gst_level_dispose;
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SIGNAL_LEVEL,
g_param_spec_boolean ("message", "mesage",
}
static void
+gst_level_dispose (GObject * obj)
+{
+ GstLevel *filter = GST_LEVEL (obj);
+
+ g_free (filter->CS);
+ g_free (filter->peak);
+ g_free (filter->last_peak);
+ g_free (filter->decay_peak);
+ g_free (filter->decay_peak_base);
+ g_free (filter->decay_peak_age);
+
+ filter->CS = NULL;
+ filter->peak = NULL;
+ filter->last_peak = NULL;
+ filter->decay_peak = NULL;
+ filter->decay_peak_base = NULL;
+ filter->decay_peak_age = NULL;
+
+ G_OBJECT_CLASS (parent_class)->dispose (obj);
+}
+
+static void
gst_level_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{