[farsight2/master] elementaddednotifier: Unref element in iterator loop
Olivier Crête
olivier.crete at collabora.co.uk
Fri Aug 7 13:43:11 PDT 2009
Fixes leak
---
gst-libs/gst/farsight/fs-element-added-notifier.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/gst-libs/gst/farsight/fs-element-added-notifier.c b/gst-libs/gst/farsight/fs-element-added-notifier.c
index 391925f..795bdd9 100644
--- a/gst-libs/gst/farsight/fs-element-added-notifier.c
+++ b/gst-libs/gst/farsight/fs-element-added-notifier.c
@@ -178,6 +178,7 @@ _bin_unparented_cb (GstObject *object, GstObject *parent, gpointer user_data)
case GST_ITERATOR_OK:
if (GST_IS_BIN (item))
_bin_unparented_cb (GST_OBJECT (item), object, user_data);
+ gst_object_unref (item);
break;
case GST_ITERATOR_RESYNC:
// We don't rollback anything, we just ignore already processed ones
--
1.5.6.5
More information about the farsight-commits
mailing list