mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
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
This commit is contained in:
parent
ee8a5455d0
commit
9900b08512
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue