mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 09:42:19 +00:00
tests: fix leak in vorbisdec unit test
This commit is contained in:
parent
069bcfa169
commit
6a0b713b28
1 changed files with 5 additions and 1 deletions
|
@ -79,9 +79,13 @@ GST_START_TEST (test_timestamps)
|
||||||
loop = g_main_loop_new (NULL, FALSE);
|
loop = g_main_loop_new (NULL, FALSE);
|
||||||
|
|
||||||
g_main_loop_run (loop);
|
g_main_loop_run (loop);
|
||||||
|
g_main_loop_unref (loop);
|
||||||
|
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
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");
|
fail_if (messages > 0, "Received imperfect timestamp messages");
|
||||||
gst_object_unref (pipeline);
|
gst_object_unref (pipeline);
|
||||||
}
|
}
|
||||||
|
@ -92,7 +96,7 @@ GST_END_TEST;
|
||||||
static Suite *
|
static Suite *
|
||||||
vorbisenc_suite (void)
|
vorbisenc_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("vorbisenc");
|
Suite *s = suite_create ("vorbisdec");
|
||||||
TCase *tc_chain = tcase_create ("general");
|
TCase *tc_chain = tcase_create ("general");
|
||||||
|
|
||||||
suite_add_tcase (s, tc_chain);
|
suite_add_tcase (s, tc_chain);
|
||||||
|
|
Loading…
Reference in a new issue