mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 00:45:56 +00:00
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:
parent
836eb1dd02
commit
85e7a3989c
2 changed files with 11 additions and 1 deletions
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue