summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2016-01-26 09:34:00 +0900
committerTim-Philipp Müller <tim@centricular.com>2016-02-17 08:57:30 +0000
commit9900b08512492355eec6c5530889d74828635da3 (patch)
treee10de55b06234b5f102b20a4d7b7b0132824f531 /sys
parentee8a5455d0b04198e90670ea672859cc30a1ad48 (diff)
downloadgstreamer-plugins-bad-9900b08512492355eec6c5530889d74828635da3.tar.gz
uvch264_src: Fix caps memory leak
v4l_caps and new_caps are being allocated new memory before freeing the old allocation. https://bugzilla.gnome.org/show_bug.cgi?id=761108
Diffstat (limited to 'sys')
-rw-r--r--sys/uvch264/gstuvch264_src.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvch264/gstuvch264_src.c b/sys/uvch264/gstuvch264_src.c
index 94c09fa95..eae7d8210 100644
--- a/sys/uvch264/gstuvch264_src.c
+++ b/sys/uvch264/gstuvch264_src.c
@@ -3042,8 +3042,8 @@ gst_uvc_h264_src_getcaps (GstPad * pad, GstObject * parent, GstQuery * query)
if (self->v4l2_src) {
GstCaps *filter;
GstPad *v4l_pad = gst_element_get_static_pad (self->v4l2_src, "src");
- GstCaps *v4l_caps = gst_pad_query_caps (v4l_pad, NULL);
- GstCaps *new_caps = gst_uvc_h264_src_transform_caps (self, v4l_caps);
+ GstCaps *v4l_caps = NULL;
+ GstCaps *new_caps = NULL;
gst_query_parse_caps (query, &filter);
v4l_caps = gst_pad_query_caps (v4l_pad, filter);