From: Joshua P. <jpr...@us...> - 2001-09-24 19:57:48
|
Update of /cvsroot/gstreamer/gstreamer/libs/bytestream In directory usw-pr-cvs1:/tmp/cvs-serv9751 Modified Files: Tag: BRANCH-EVENTS1 gstbytestream.c Log Message: fix memory leak in destroy, maybe pad needs help too Index: gstbytestream.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/libs/bytestream/Attic/gstbytestream.c,v retrieving revision 1.1.2.9 retrieving revision 1.1.2.10 diff -u -d -r1.1.2.9 -r1.1.2.10 --- gstbytestream.c 2001/09/24 19:42:41 1.1.2.9 +++ gstbytestream.c 2001/09/24 19:57:45 1.1.2.10 @@ -45,7 +45,7 @@ { 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 @@ { 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); } |