summaryrefslogtreecommitdiff
path: root/gst/ivtc
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2015-12-16 14:29:20 +0900
committerSebastian Dröge <sebastian@centricular.com>2015-12-16 09:58:29 +0100
commitc5130b1dfe60134dcb8e0611fdc8dce1db1dc4e9 (patch)
tree883e1de0a05839a8c02dac6875e427677f7f342d /gst/ivtc
parent7c65a5ccd5bafc35a5ff4920385611e5edc003a7 (diff)
downloadgstreamer-plugins-bad-c5130b1dfe60134dcb8e0611fdc8dce1db1dc4e9.tar.gz
combdetect: Fix value memory leak
gvalue variable should be unset instead of reset. https://bugzilla.gnome.org/show_bug.cgi?id=759523
Diffstat (limited to 'gst/ivtc')
-rw-r--r--gst/ivtc/gstcombdetect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/ivtc/gstcombdetect.c b/gst/ivtc/gstcombdetect.c
index 9f8c9f0a1..2356b969f 100644
--- a/gst/ivtc/gstcombdetect.c
+++ b/gst/ivtc/gstcombdetect.c
@@ -153,8 +153,8 @@ gst_comb_detect_transform_caps (GstBaseTransform * trans,
GstStructure *structure = gst_caps_get_structure (othercaps, i);
gst_structure_set_value (structure, "interlace-mode", &value);
}
- 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);