mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 23:18:47 +00:00
fleshed out the _destroy function
Original commit message from CVS: fleshed out the _destroy function
This commit is contained in:
parent
071646673d
commit
aabc218a93
1 changed files with 8 additions and 1 deletions
|
@ -57,7 +57,14 @@ gst_bytestream_new (GstPad * pad)
|
|||
void
|
||||
gst_bytestream_destroy (GstByteStream * bs)
|
||||
{
|
||||
// FIXME lots of cleaning up to do here...
|
||||
GSList *walk;
|
||||
|
||||
walk = bs->buflist;
|
||||
while (walk) {
|
||||
gst_buffer_unref( GST_BUFFER (walk->data) );
|
||||
walk = g_slist_next (walk);
|
||||
}
|
||||
|
||||
g_free (bs);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue