projects
/
platform
/
upstream
/
gst-plugins-ugly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c08038
)
mpg123audiodec: fix caps leak
author
Tim-Philipp Müller
<tim@centricular.com>
Sat, 15 Jul 2017 13:57:49 +0000
(14:57 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 15 Jul 2017 13:57:49 +0000
(14:57 +0100)
The pad template takes its own ref, so we should unref the caps.
https://bugzilla.gnome.org/show_bug.cgi?id=784982
ext/mpg123/gstmpg123audiodec.c
patch
|
blob
|
history
diff --git
a/ext/mpg123/gstmpg123audiodec.c
b/ext/mpg123/gstmpg123audiodec.c
index
cfd017e
..
fa6743c
100644
(file)
--- a/
ext/mpg123/gstmpg123audiodec.c
+++ b/
ext/mpg123/gstmpg123audiodec.c
@@
-167,6
+167,7
@@
gst_mpg123_audio_dec_class_init (GstMpg123AudioDecClass * klass)
src_template_caps = gst_caps_from_string (s->str);
src_template = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
src_template_caps);
+ gst_caps_unref (src_template_caps);
g_string_free (s, TRUE);
}