ivtc: Fix value memory leak

gvalue variable should be unset instead of reset.

https://bugzilla.gnome.org/show_bug.cgi?id=759525
This commit is contained in:
Vineeth TM 2015-12-16 14:32:20 +09:00 committed by Sebastian Dröge
parent c5130b1dfe
commit 720b9bef05

View file

@ -169,8 +169,8 @@ gst_ivtc_transform_caps (GstBaseTransform * trans,
gst_structure_set_value (structure, "interlace-mode", &value);
gst_structure_remove_field (structure, "framerate");
}
g_value_reset (&value);
g_value_reset (&v);
g_value_unset (&value);
g_value_unset (&v);
} else {
for (i = 0; i < gst_caps_get_size (othercaps); i++) {
GstStructure *structure = gst_caps_get_structure (othercaps, i);