mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
video: fix leak in gst_video_format_new_template_caps()
g_value_reset() is not the same as g_value_unset()
This commit is contained in:
parent
8728023f00
commit
61d0ab1faa
1 changed files with 2 additions and 4 deletions
|
@ -762,11 +762,9 @@ gst_video_format_new_template_caps (GstVideoFormat format)
|
|||
gst_value_list_append_value (&value, &v);
|
||||
g_value_set_boolean (&v, FALSE);
|
||||
gst_value_list_append_value (&value, &v);
|
||||
g_value_unset (&v);
|
||||
|
||||
gst_structure_set_value (structure, "interlaced", &value);
|
||||
|
||||
g_value_reset (&value);
|
||||
g_value_reset (&v);
|
||||
gst_structure_take_value (structure, "interlaced", &value);
|
||||
}
|
||||
|
||||
return caps;
|
||||
|
|
Loading…
Reference in a new issue