gst/adder/gstadder.c: Don't leak pad name.

Original commit message from CVS:
* gst/adder/gstadder.c: (gst_adder_request_new_pad):
Don't leak pad name.
This commit is contained in:
Wim Taymans 2006-05-29 17:19:48 +00:00
parent b375dde1a7
commit 444f73582d
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-05-29 Wim Taymans <wim@fluendo.com>
* gst/adder/gstadder.c: (gst_adder_request_new_pad):
Don't leak pad name.
2006-05-29 Wim Taymans <wim@fluendo.com>
* gst/adder/gstadder.c: (gst_adder_query_duration),

View file

@ -569,6 +569,7 @@ gst_adder_request_new_pad (GstElement * element, GstPadTemplate * templ,
name = g_strdup_printf ("sink%d", adder->numpads);
newpad = gst_pad_new_from_template (templ, name);
g_free (name);
gst_pad_set_getcaps_function (newpad,
GST_DEBUG_FUNCPTR (gst_pad_proxy_getcaps));