tests/check/gst/gstbin.c: Fix leaks in the new unit test.

Original commit message from CVS:
* tests/check/gst/gstbin.c: (GST_START_TEST):
Fix leaks in the new unit test.
This commit is contained in:
Jan Schmidt 2007-08-24 14:55:46 +00:00
parent 684db8eb7c
commit e2b34e1551
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-08-24 Jan Schmidt <thaytan@mad.scientist.com>
* tests/check/gst/gstbin.c: (GST_START_TEST):
Fix leaks in the new unit test.
2007-08-23 Tim-Philipp Müller <tim at centricular dot net>
* gst/gst.c:

View file

@ -874,10 +874,17 @@ GST_START_TEST (test_iterate_sorted)
it = gst_bin_iterate_sorted (GST_BIN (pipeline));
fail_unless (gst_iterator_next (it, &elem) == GST_ITERATOR_OK);
fail_unless (elem == sink2);
gst_object_unref (elem);
fail_unless (gst_iterator_next (it, &elem) == GST_ITERATOR_OK);
fail_unless (elem == identity);
gst_object_unref (elem);
fail_unless (gst_iterator_next (it, &elem) == GST_ITERATOR_OK);
fail_unless (elem == bin);
gst_object_unref (elem);
gst_iterator_free (it);
gst_object_unref (pipeline);
}