summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2013-03-03 16:51:10 +0000
committerTim-Philipp Müller <tim@centricular.net>2013-03-03 16:55:24 +0000
commit6a0b713b284c1b9e9b44c84492b20929e3f9347a (patch)
treea84aff61e5fc8efc0a672fbd231425fe52a58483 /tests
parent069bcfa169380b5b0e90548e37d0ca510e9f4125 (diff)
tests: fix leak in vorbisdec unit test
Diffstat (limited to 'tests')
-rw-r--r--tests/check/pipelines/vorbisdec.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/check/pipelines/vorbisdec.c b/tests/check/pipelines/vorbisdec.c
index 7796d5fee..43c673a0a 100644
--- a/tests/check/pipelines/vorbisdec.c
+++ b/tests/check/pipelines/vorbisdec.c
@@ -79,9 +79,13 @@ GST_START_TEST (test_timestamps)
loop = g_main_loop_new (NULL, FALSE);
g_main_loop_run (loop);
+ g_main_loop_unref (loop);
gst_element_set_state (pipeline, GST_STATE_NULL);
+ gst_bus_remove_signal_watch (bus);
+ gst_object_unref (bus);
+
fail_if (messages > 0, "Received imperfect timestamp messages");
gst_object_unref (pipeline);
}
@@ -92,7 +96,7 @@ GST_END_TEST;
static Suite *
vorbisenc_suite (void)
{
- Suite *s = suite_create ("vorbisenc");
+ Suite *s = suite_create ("vorbisdec");
TCase *tc_chain = tcase_create ("general");
suite_add_tcase (s, tc_chain);