diff options
author | Garima Gaur <garima.g@samsung.com> | 2017-01-03 09:02:36 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-01-03 10:02:58 +0000 |
commit | 81b0a14d692bb679c5688ef597e5aab6f0ce7730 (patch) | |
tree | 7d680e89eee7615ff7780d0c9418636b2daf50fa /sys/applemedia | |
parent | e2fba4003863edb39ecd779204818497bbddb652 (diff) | |
download | gstreamer-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.c | 1 |
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 |