From 81b0a14d692bb679c5688ef597e5aab6f0ce7730 Mon Sep 17 00:00:00 2001 From: Garima Gaur Date: Tue, 3 Jan 2017 09:02:36 +0530 Subject: Fix some caps leaks in pad template creation code gst_pad_template_new() does not take ownership of the caps passed to it, so we need to unref the caps. https://bugzilla.gnome.org/show_bug.cgi?id=776790 https://bugzilla.gnome.org/show_bug.cgi?id=776787 --- sys/applemedia/vtenc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/applemedia') diff --git a/sys/applemedia/vtenc.c b/sys/applemedia/vtenc.c index d91ab824c..8b325fb82 100644 --- a/sys/applemedia/vtenc.c +++ b/sys/applemedia/vtenc.c @@ -194,6 +194,7 @@ gst_vtenc_base_init (GstVTEncClass * klass) src_template = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, src_caps); gst_element_class_add_pad_template (element_class, src_template); + gst_caps_unref (src_caps); } static void -- cgit v1.2.1