From 438a83df58643a65b8cb55161e3a2c7f8ac719e8 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 2 Feb 2016 16:35:34 +0100 Subject: [PATCH] controller: Do not unset uninitiallized GValue In case the property was not interpollable we might never initialize the GValue, we should thus never unset it. --- libs/gst/controller/gstdirectcontrolbinding.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/gst/controller/gstdirectcontrolbinding.c b/libs/gst/controller/gstdirectcontrolbinding.c index 44eb405..2e0b9f1 100644 --- a/libs/gst/controller/gstdirectcontrolbinding.c +++ b/libs/gst/controller/gstdirectcontrolbinding.c @@ -343,7 +343,8 @@ gst_direct_control_binding_finalize (GObject * object) { GstDirectControlBinding *self = GST_DIRECT_CONTROL_BINDING (object); - g_value_unset (&self->cur_value); + if (G_IS_VALUE (&self->cur_value)) + g_value_unset (&self->cur_value); G_OBJECT_CLASS (parent_class)->finalize (object); } -- 2.7.4