gst/dvdsub/gstdvdsubparse.c: Stop leaking src pad templates. Fixes bug #515708.

Original commit message from CVS:
* gst/dvdsub/gstdvdsubparse.c: (gst_dvd_sub_parse_init):
Stop leaking src pad templates. Fixes bug #515708.
This commit is contained in:
Sebastian Dröge 2008-02-11 13:31:06 +00:00
parent 17a6a7417c
commit 04053f146f
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-02-11 Sebastian Dröge <slomo@circular-chaos.org>
* gst/dvdsub/gstdvdsubparse.c: (gst_dvd_sub_parse_init):
Stop leaking src pad templates. Fixes bug #515708.
2008-02-11 Sebastian Dröge <slomo@circular-chaos.org>
* gst/mpegaudioparse/gstxingmux.c: (generate_xing_header):

View file

@ -108,7 +108,7 @@ gst_dvd_sub_parse_init (GstDvdSubParse * parse, GstDvdSubParseClass * klass)
parse->srcpad = gst_pad_new_from_static_template (&src_template, "src");
gst_pad_use_fixed_caps (parse->srcpad);
gst_pad_set_caps (parse->srcpad,
gst_pad_template_get_caps (gst_static_pad_template_get (&src_template)));
gst_static_pad_template_get_caps (&src_template));
gst_element_add_pad (GST_ELEMENT (parse), parse->srcpad);
/* remainder */