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.
This commit is contained in:
Michael Smith 2005-11-24 14:39:59 +00:00
parent 836eb1dd02
commit 85e7a3989c
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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):

View file

@ -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