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:
Tim-Philipp Müller 2011-12-06 14:55:38 +00:00
parent 8728023f00
commit 61d0ab1faa

View file

@ -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;