mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 22:28:22 +00:00
fix memory leak in destroy, maybe pad needs help too
Original commit message from CVS: fix memory leak in destroy, maybe pad needs help too
This commit is contained in:
parent
aabc218a93
commit
a3a159e216
1 changed files with 4 additions and 1 deletions
|
@ -45,7 +45,7 @@ gst_bytestream_new (GstPad * pad)
|
|||
{
|
||||
GstByteStream *bs = g_new (GstByteStream, 1);
|
||||
|
||||
bs->pad = pad;
|
||||
bs->pad = pad; // need to refcnt?
|
||||
|
||||
bs->buflist = NULL;
|
||||
bs->headbufavail = 0;
|
||||
|
@ -59,12 +59,15 @@ gst_bytestream_destroy (GstByteStream * bs)
|
|||
{
|
||||
GSList *walk;
|
||||
|
||||
// release bs->pad ??
|
||||
|
||||
walk = bs->buflist;
|
||||
while (walk) {
|
||||
gst_buffer_unref( GST_BUFFER (walk->data) );
|
||||
walk = g_slist_next (walk);
|
||||
}
|
||||
|
||||
g_slist_free (bs->buflist);
|
||||
g_free (bs);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue