From a2d02300f81ac8080dad9c8421686b9605d3abc1 Mon Sep 17 00:00:00 2001 From: Garima Gaur Date: Tue, 3 Jan 2017 10:12:30 +0530 Subject: [PATCH] avidemux: fix some caps leaks https://bugzilla.gnome.org//show_bug.cgi?id=776789 --- gst/avi/gstavidemux.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index bd5ea72..4475576 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -176,6 +176,11 @@ gst_avi_demux_class_init (GstAviDemuxClass * klass) gst_element_class_add_pad_template (gstelement_class, subpicsrctempl); gst_element_class_add_static_pad_template (gstelement_class, &sink_templ); + gst_caps_unref (audcaps); + gst_caps_unref (vidcaps); + gst_caps_unref (subcaps); + gst_caps_unref (subpiccaps); + gst_element_class_set_static_metadata (gstelement_class, "Avi demuxer", "Codec/Demuxer", "Demultiplex an avi file into audio and video", -- 2.7.4