summaryrefslogtreecommitdiff
path: root/sys/applemedia
diff options
context:
space:
mode:
authorGarima Gaur <garima.g@samsung.com>2017-01-03 09:02:36 +0530
committerTim-Philipp Müller <tim@centricular.com>2017-01-03 10:02:58 +0000
commit81b0a14d692bb679c5688ef597e5aab6f0ce7730 (patch)
tree7d680e89eee7615ff7780d0c9418636b2daf50fa /sys/applemedia
parente2fba4003863edb39ecd779204818497bbddb652 (diff)
downloadgstreamer-plugins-bad-81b0a14d692bb679c5688ef597e5aab6f0ce7730.tar.gz
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
Diffstat (limited to 'sys/applemedia')
-rw-r--r--sys/applemedia/vtenc.c1
1 files changed, 1 insertions, 0 deletions
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