diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2007-03-05 18:43:29 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2007-03-05 18:43:29 +0000 |
commit | e1fcfeab25f58a5ee81e0087a80d186e1efc0313 (patch) | |
tree | 6e9eddde03bd6dd025a1651cdc1ec78e75a10f60 | |
parent | e87cd3fd7a0f1bea1f06b84494dec1d915b0282d (diff) |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/esd/esdsink.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,5 +1,10 @@ 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> + * ext/gconf/gstswitchsink.c: (gst_switch_sink_dispose), (gst_switch_commit_new_kid): Fix up the reference counting of the child elements. diff --git a/ext/esd/esdsink.c b/ext/esd/esdsink.c index 3946b301..d46af07b 100644 --- a/ext/esd/esdsink.c +++ b/ext/esd/esdsink.c @@ -240,6 +240,7 @@ gst_esdsink_open (GstAudioSink * asink) pad_template = gst_static_pad_template_get (&sink_factory); 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++) { GstStructure *s; |