diff --git a/tests/check/elements/leaks.c b/tests/check/elements/leaks.c index 3ec7bb6046..c457226087 100644 --- a/tests/check/elements/leaks.c +++ b/tests/check/elements/leaks.c @@ -169,6 +169,9 @@ GST_START_TEST (test_get_live_objects) GST_STATE_CHANGE_SUCCESS); gst_object_unref (pipe); + /* Force all leftover tasks to stop */ + gst_task_cleanup_all (); + /* Check the live-objects data returned by the tracer */ { guint ii, size; @@ -251,6 +254,9 @@ GST_START_TEST (test_get_live_objects_filtered_detailed) GST_STATE_CHANGE_SUCCESS); gst_object_unref (pipe); + /* Force all leftover tasks to stop */ + gst_task_cleanup_all (); + /* Check the live-objects data returned by the tracer */ { guint ii, jj, isize, jsize; @@ -432,6 +438,9 @@ GST_START_TEST (test_activity_get_checkpoint) GST_STATE_CHANGE_SUCCESS); gst_object_unref (pipe); + /* Force all leftover tasks to stop */ + gst_task_cleanup_all (); + { GstStructure *cpoint; const GstStructure *cs, *rs;