tests/check/gst/gstghostpad.c: Unref a pad we reffed.

Original commit message from CVS:
* tests/check/gst/gstghostpad.c: (GST_START_TEST):
Unref a pad we reffed.
* tests/check/gst/gstutils.c: (GST_START_TEST):
Unref bins
This commit is contained in:
Michael Smith 2006-04-05 15:12:39 +00:00
parent add30e0328
commit 763b2d3278
3 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2006-04-05 Michael Smith <msmith@fluendo.com>
* tests/check/gst/gstghostpad.c: (GST_START_TEST):
Unref a pad we reffed.
* tests/check/gst/gstutils.c: (GST_START_TEST):
Unref bins
2006-04-05 Michael Smith <msmith@fluendo.com> 2006-04-05 Michael Smith <msmith@fluendo.com>
* gst/gstquery.c: (gst_query_set_formats), * gst/gstquery.c: (gst_query_set_formats),

View file

@ -58,6 +58,7 @@ GST_START_TEST (test_remove1)
srcpad = gst_element_get_pad (src, "src"); srcpad = gst_element_get_pad (src, "src");
/* pad cannot be linked now */ /* pad cannot be linked now */
fail_if (gst_pad_is_linked (srcpad)); fail_if (gst_pad_is_linked (srcpad));
gst_object_unref (srcpad);
gst_object_unref (b1); gst_object_unref (b1);
} }

View file

@ -406,6 +406,8 @@ GST_START_TEST (test_parse_bin_from_description)
bin_tests[i].pad_names, s->str, bin_tests[i].bin_desc); bin_tests[i].pad_names, s->str, bin_tests[i].bin_desc);
} }
g_string_free (s, TRUE); g_string_free (s, TRUE);
gst_object_unref (bin);
} }
} }