From e2b34e155142699c6b66a15967318a36d9d14ddd Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 24 Aug 2007 14:55:46 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ tests/check/gst/gstbin.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index b07abe4..16e9a45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-08-24 Jan Schmidt + + * tests/check/gst/gstbin.c: (GST_START_TEST): + Fix leaks in the new unit test. + 2007-08-23 Tim-Philipp Müller * gst/gst.c: diff --git a/tests/check/gst/gstbin.c b/tests/check/gst/gstbin.c index 3bf39dc..46b9bb6 100644 --- a/tests/check/gst/gstbin.c +++ b/tests/check/gst/gstbin.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); } -- 2.7.4