Commit 85e7a398 authored by Michael Smith's avatar Michael Smith

docs/manual/basics-helloworld.xml: Fix bug #315027: memory leak in example code in docs.

Original commit message from CVS:
* docs/manual/basics-helloworld.xml:
Fix bug #315027: memory leak in example code in docs.
parent 836eb1dd
2005-11-24 msmith,,, <set EMAIL_ADDRESS environment variable>
* docs/manual/basics-helloworld.xml:
Fix bug #315027: memory leak in example code in docs.
2005-11-24 Michael Smith <msmith@fluendo.com>
* gst/base/gstbasesink.c: (gst_base_sink_handle_object):
......
......@@ -104,9 +104,14 @@ new_pad (GstElement *element,
GstPad *pad,
gpointer data)
{
GstPad *sinkpad;
/* We can now link this pad with the audio decoder */
g_print ("Dynamic pad created, linking parser/decoder\n");
gst_pad_link (pad, gst_element_get_pad (decoder, "sink"));
sinkpad = gst_element_get_pad (decoder, "sink"));
gst_pad_link (pad, sinkpad);
gst_object_unref (sinkpad);
}
int
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment