libs/gst/base/gstcollectpads.c: When rebuilding the pad list, don't leak the previous...
authorWim Taymans <wim.taymans@gmail.com>
Tue, 30 May 2006 11:43:43 +0000 (11:43 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 30 May 2006 11:43:43 +0000 (11:43 +0000)
Original commit message from CVS:
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_check_pads):
When rebuilding the pad list, don't leak the previous list.

ChangeLog
libs/gst/base/gstcollectpads.c

index fee2058..4f0a20e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-05-30  Wim Taymans  <wim@fluendo.com>
 
+       * libs/gst/base/gstcollectpads.c: (gst_collect_pads_check_pads):
+       When rebuilding the pad list, don't leak the previous list.
+
+2006-05-30  Wim Taymans  <wim@fluendo.com>
+
        Patch by: Lutz Mueller <lutz at topfrose dot de>
 
        * libs/gst/base/gstbasesrc.c: (gst_base_src_class_init),
index 90ba8f3..7d11fc6 100644 (file)
@@ -779,6 +779,7 @@ gst_collect_pads_check_pads (GstCollectPads * pads)
     GSList *collected;
 
     /* clear list and stats */
+    g_slist_free (pads->data);
     pads->data = NULL;
     pads->numpads = 0;
     pads->queuedpads = 0;