mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
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.
This commit is contained in:
parent
98aec4a963
commit
39739c015b
1 changed files with 2 additions and 1 deletions
|
@ -343,7 +343,8 @@ gst_direct_control_binding_finalize (GObject * object)
|
||||||
{
|
{
|
||||||
GstDirectControlBinding *self = GST_DIRECT_CONTROL_BINDING (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);
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue