summaryrefslogtreecommitdiff
path: root/gst/ivtc
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2015-12-16 14:32:20 +0900
committerSebastian Dröge <sebastian@centricular.com>2015-12-16 09:59:39 +0100
commit720b9bef05000ca54f4a4fba093e334d2bbb4d2b (patch)
treecd79fa80e1c6023792ada7368dbd755aeb00d732 /gst/ivtc
parentc5130b1dfe60134dcb8e0611fdc8dce1db1dc4e9 (diff)
downloadgstreamer-plugins-bad-720b9bef05000ca54f4a4fba093e334d2bbb4d2b.tar.gz
ivtc: Fix value memory leak
gvalue variable should be unset instead of reset. https://bugzilla.gnome.org/show_bug.cgi?id=759525
Diffstat (limited to 'gst/ivtc')
-rw-r--r--gst/ivtc/gstivtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/ivtc/gstivtc.c b/gst/ivtc/gstivtc.c
index 30636e856..6dd0c8d12 100644
--- a/gst/ivtc/gstivtc.c
+++ b/gst/ivtc/gstivtc.c
@@ -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);