libs/gst/controller/gstcontroller.c: Unset the minimum and maximum GValues when freeing the corresponding

Original commit message from CVS:
* libs/gst/controller/gstcontroller.c:
(gst_controlled_property_free):
Unset the minimum and maximum GValues when freeing the corresponding
GstControllerProperty struct.
This commit is contained in:
Sebastian Dröge 2007-06-10 12:38:11 +00:00
parent bdcc0329ef
commit f8742ef131
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2007-06-10 Sebastian Dröge <slomo@circular-chaos.org>
* libs/gst/controller/gstcontroller.c:
(gst_controlled_property_free):
Unset the minimum and maximum GValues when freeing the corresponding
GstControllerProperty struct.
2007-06-09 Sebastian Dröge <slomo@circular-chaos.org> 2007-06-09 Sebastian Dröge <slomo@circular-chaos.org>
* libs/gst/controller/gstcontroller.c: * libs/gst/controller/gstcontroller.c:

View file

@ -479,6 +479,11 @@ gst_controlled_property_free (GstControlledProperty * prop)
if (G_IS_VALUE (&prop->live_value.value)) if (G_IS_VALUE (&prop->live_value.value))
g_value_unset (&prop->live_value.value); g_value_unset (&prop->live_value.value);
if (G_IS_VALUE (&prop->min_value))
g_value_unset (&prop->min_value);
if (G_IS_VALUE (&prop->max_value))
g_value_unset (&prop->max_value);
g_free (prop); g_free (prop);
} }