mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 00:45:56 +00:00
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:
parent
684db8eb7c
commit
e2b34e1551
2 changed files with 12 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue