From f55a0235102383169fc7821251907898e985f39a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 30 May 2006 11:43:43 +0000 Subject: [PATCH] libs/gst/base/gstcollectpads.c: When rebuilding the pad list, don't leak the previous list. 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 | 5 +++++ libs/gst/base/gstcollectpads.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index fee2058..4f0a20e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2006-05-30 Wim Taymans + * 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 + Patch by: Lutz Mueller * libs/gst/base/gstbasesrc.c: (gst_base_src_class_init), diff --git a/libs/gst/base/gstcollectpads.c b/libs/gst/base/gstcollectpads.c index 90ba8f3..7d11fc6 100644 --- a/libs/gst/base/gstcollectpads.c +++ b/libs/gst/base/gstcollectpads.c @@ -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; -- 2.7.4