summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-07-15 14:57:49 +0100
committerSebastian Dröge <sebastian@centricular.com>2017-07-25 11:26:38 +0300
commitf0fb1135c676e90cf8036ad2ef4bb56bf9f5348a (patch)
treea634125c72d91973f67eae259a79d8261d167b05
parentb93b55cc62e5e5d99afb2642fe55e108827569b7 (diff)
mpg123audiodec: fix caps leak
The pad template takes its own ref, so we should unref the caps. https://bugzilla.gnome.org/show_bug.cgi?id=784982
-rw-r--r--ext/mpg123/gstmpg123audiodec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mpg123/gstmpg123audiodec.c b/ext/mpg123/gstmpg123audiodec.c
index cfd017ea..fa6743cb 100644
--- 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);
}