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.
This commit is contained in:
Wim Taymans 2006-05-30 11:43:43 +00:00
parent eb3f062cc1
commit f55a023510
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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>

View 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;