fleshed out the _destroy function

Original commit message from CVS:
fleshed out the _destroy function
This commit is contained in:
Erik Walthinsen 2001-09-24 19:42:41 +00:00
parent 071646673d
commit aabc218a93

View file

@ -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);
}