Commit e0714f67 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

mpg123audiodec: fix caps leak

The pad template takes its own ref, so we should unref the caps.
parent d68fc85d
......@@ -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,
gst_caps_unref (src_template_caps);
g_string_free (s, TRUE);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment