ext/esd/esdsink.c: Unref static pad template after using it.

Original commit message from CVS:
* ext/esd/esdsink.c: (gst_esdsink_open):
Unref static pad template after using it.
This commit is contained in:
Jan Schmidt 2007-03-05 18:43:29 +00:00
parent e87cd3fd7a
commit e1fcfeab25
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-03-05 Jan Schmidt <thaytan@mad.scientist.com>
* ext/esd/esdsink.c: (gst_esdsink_open):
Unref static pad template after using it.
2007-03-05 Jan Schmidt <thaytan@mad.scientist.com> 2007-03-05 Jan Schmidt <thaytan@mad.scientist.com>
* ext/gconf/gstswitchsink.c: (gst_switch_sink_dispose), * ext/gconf/gstswitchsink.c: (gst_switch_sink_dispose),

View file

@ -240,6 +240,7 @@ gst_esdsink_open (GstAudioSink * asink)
pad_template = gst_static_pad_template_get (&sink_factory); pad_template = gst_static_pad_template_get (&sink_factory);
esdsink->cur_caps = gst_caps_copy (gst_pad_template_get_caps (pad_template)); esdsink->cur_caps = gst_caps_copy (gst_pad_template_get_caps (pad_template));
gst_object_unref (pad_template);
for (i = 0; i < esdsink->cur_caps->structs->len; i++) { for (i = 0; i < esdsink->cur_caps->structs->len; i++) {
GstStructure *s; GstStructure *s;