gst/gstbin.c: And unref the child too..
authorWim Taymans <wim.taymans@gmail.com>
Thu, 17 Nov 2005 16:02:48 +0000 (16:02 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Thu, 17 Nov 2005 16:02:48 +0000 (16:02 +0000)
Original commit message from CVS:
* gst/gstbin.c: (gst_bin_provide_clock_func),
(gst_bin_sort_iterator_new):
And unref the child too..

ChangeLog
gst/gstbin.c

index d9c91b8..f868a90 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2005-11-17  Wim Taymans  <wim@fluendo.com>
 
+       * gst/gstbin.c: (gst_bin_provide_clock_func),
+       (gst_bin_sort_iterator_new):
+       And unref the child too..
+
+2005-11-17  Wim Taymans  <wim@fluendo.com>
+
        * gst/gstbin.c: (gst_bin_dispose), (gst_bin_provide_clock_func),
        (gst_bin_sort_iterator_new), (gst_bin_iterate_sorted):
        Refactor the sort iterator so it can be used while holding the
index c46175a..637aef0 100644 (file)
@@ -487,6 +487,7 @@ gst_bin_provide_clock_func (GstElement * element)
         gst_object_unref (result);
       result = clock;
     }
+    gst_object_unref (child);
   }
   gst_object_replace ((GstObject **) & bin->provided_clock,
       (GstObject *) result);