mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +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
|
void
|
||||||
gst_bytestream_destroy (GstByteStream * bs)
|
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);
|
g_free (bs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue