summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2014-11-02 23:33:23 +0000
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2014-12-15 18:54:26 -0500
commit7a7834c14cdeabaa92906c8b274e7e0c7d5826cc (patch)
treed0b8430bd4c1b25a257b055dc16c32e521b1ca3b
parent1a9bb902553fafb4a957f207449626d6a9e0aa87 (diff)
v4l2src: fix a couple of minor leaks
-rw-r--r--sys/v4l2/gstv4l2object.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c
index ce50826b4..7b645db22 100644
--- a/sys/v4l2/gstv4l2object.c
+++ b/sys/v4l2/gstv4l2object.c
@@ -1717,7 +1717,7 @@ gst_v4l2_object_add_interlace_mode (GstV4l2Object * v4l2object,
GValue interlace_enum = { 0, };
g_value_init (&interlace_enum, G_TYPE_STRING);
g_value_set_string (&interlace_enum, mode_strings[interlace_mode]);
- gst_value_list_append_value (&interlace_formats, &interlace_enum);
+ gst_value_list_append_and_take_value (&interlace_formats, &interlace_enum);
}
memset (&fmt, 0, sizeof (fmt));
@@ -1732,11 +1732,11 @@ gst_v4l2_object_add_interlace_mode (GstV4l2Object * v4l2object,
GValue interlace_enum = { 0, };
g_value_init (&interlace_enum, G_TYPE_STRING);
g_value_set_string (&interlace_enum, mode_strings[interlace_mode]);
- gst_value_list_append_value (&interlace_formats, &interlace_enum);
+ gst_value_list_append_and_take_value (&interlace_formats, &interlace_enum);
}
gst_v4l2src_value_simplify (&interlace_formats);
- gst_structure_set_value (s, "interlace-mode", &interlace_formats);
+ gst_structure_take_value (s, "interlace-mode", &interlace_formats);
return;
}