gstvalue: fix GstValue leak in structure_field_union_into

https://bugzilla.gnome.org/show_bug.cgi?id=780751
This commit is contained in:
Vincent Penquerc'h 2017-03-31 11:22:49 +01:00
parent efbacf1931
commit c361365890

View file

@ -4351,7 +4351,7 @@ structure_field_union_into (GQuark field_id, GValue * val, gpointer user_data)
return FALSE;
g_value_unset (val);
gst_value_init_and_copy (val, &res_value);
gst_value_move (val, &res_value);
return TRUE;
}