mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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
This commit is contained in:
parent
d68fc85d60
commit
e0714f67b3
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue