mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
combdetect: Fix value memory leak
gvalue variable should be unset instead of reset. https://bugzilla.gnome.org/show_bug.cgi?id=759523
This commit is contained in:
parent
7c65a5ccd5
commit
c5130b1dfe
1 changed files with 2 additions and 2 deletions
|
@ -153,8 +153,8 @@ gst_comb_detect_transform_caps (GstBaseTransform * trans,
|
||||||
GstStructure *structure = gst_caps_get_structure (othercaps, i);
|
GstStructure *structure = gst_caps_get_structure (othercaps, i);
|
||||||
gst_structure_set_value (structure, "interlace-mode", &value);
|
gst_structure_set_value (structure, "interlace-mode", &value);
|
||||||
}
|
}
|
||||||
g_value_reset (&value);
|
g_value_unset (&value);
|
||||||
g_value_reset (&v);
|
g_value_unset (&v);
|
||||||
} else {
|
} else {
|
||||||
for (i = 0; i < gst_caps_get_size (othercaps); i++) {
|
for (i = 0; i < gst_caps_get_size (othercaps); i++) {
|
||||||
GstStructure *structure = gst_caps_get_structure (othercaps, i);
|
GstStructure *structure = gst_caps_get_structure (othercaps, i);
|
||||||
|
|
Loading…
Reference in a new issue