Commit e2b34e15 authored by Jan Schmidt's avatar Jan Schmidt
Browse files

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.
parent 684db8eb
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:
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment