From f8742ef1316f21144c057c339e888e7738400fd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 10 Jun 2007 12:38:11 +0000 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ libs/gst/controller/gstcontroller.c | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index bc6a16e20d..e1e746a1a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-06-10 Sebastian Dröge + + * 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 * libs/gst/controller/gstcontroller.c: diff --git a/libs/gst/controller/gstcontroller.c b/libs/gst/controller/gstcontroller.c index e78127c474..403cb49f1c 100644 --- a/libs/gst/controller/gstcontroller.c +++ b/libs/gst/controller/gstcontroller.c @@ -479,6 +479,11 @@ gst_controlled_property_free (GstControlledProperty * prop) if (G_IS_VALUE (&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); }