gst/gstbin.c: And unref the child too..

Original commit message from CVS:
* gst/gstbin.c: (gst_bin_provide_clock_func),
(gst_bin_sort_iterator_new):
And unref the child too..
This commit is contained in:
Wim Taymans 2005-11-17 16:02:48 +00:00
parent a1aa83c759
commit 40e4311d94
2 changed files with 7 additions and 0 deletions

View file

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

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