libs/gst/controller/gstinterpolationcontrolsource.c: Use GSlice for allocating the control points.

Original commit message from CVS:
* libs/gst/controller/gstinterpolationcontrolsource.c:
(gst_control_point_free),
(gst_interpolation_control_source_set_internal):
Use GSlice for allocating the control points.
This commit is contained in:
Sebastian Dröge 2008-04-02 17:45:08 +00:00
parent 9825935d6d
commit e583f5a57b
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2008-04-02 Sebastian Dröge <slomo@circular-chaos.org>
* libs/gst/controller/gstinterpolationcontrolsource.c:
(gst_control_point_free),
(gst_interpolation_control_source_set_internal):
Use GSlice for allocating the control points.
2008-04-02 Wim Taymans <wim.taymans@collabora.co.uk>
* plugins/elements/gsttypefindelement.c:

View file

@ -71,7 +71,7 @@ gst_control_point_free (GstControlPoint * cp)
g_return_if_fail (cp);
g_value_unset (&cp->value);
g_free (cp);
g_slice_free (GstControlPoint, cp);
}
static void
@ -432,7 +432,7 @@ gst_interpolation_control_source_set_internal (GstInterpolationControlSource *
g_value_copy (value, &cp->value);
} else {
/* create a new GstControlPoint */
cp = g_new0 (GstControlPoint, 1);
cp = g_slice_new0 (GstControlPoint);
cp->timestamp = timestamp;
g_value_init (&cp->value, self->priv->type);
g_value_copy (value, &cp->value);