combdetect: Fix value memory leak
authorVineeth TM <vineeth.tm@samsung.com>
Wed, 16 Dec 2015 05:29:20 +0000 (14:29 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 16 Dec 2015 08:58:29 +0000 (09:58 +0100)
gvalue variable should be unset instead of reset.

https://bugzilla.gnome.org/show_bug.cgi?id=759523

gst/ivtc/gstcombdetect.c

index 9f8c9f0..2356b96 100644 (file)
@@ -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);