From 985d0dc3ab6ec9c1c45f596a6f21765c7f812361 Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Tue, 20 Jun 2023 20:35:45 +0200 Subject: [PATCH] tests/stage-view-tests: Unref clutter timelines If the timelines don't get destroyed they keep references to frame clocks. Later tests check for the destruction of those frame clocks and then can fail if the frame clock is implemented slightly differenty. Part-of: --- src/tests/stage-view-tests.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/stage-view-tests.c b/src/tests/stage-view-tests.c index 6a659ef31..16f26c441 100644 --- a/src/tests/stage-view-tests.c +++ b/src/tests/stage-view-tests.c @@ -969,6 +969,7 @@ meta_test_actor_stage_views_parent_views_changed (void) g_assert_nonnull (timeline_frame_clock); g_assert (timeline_frame_clock == second_view_frame_clock); + g_object_unref (timeline); clutter_actor_destroy (test_actor); clutter_actor_destroy (container); } @@ -1068,6 +1069,7 @@ meta_test_actor_stage_views_and_frame_clocks_freed (void) timeline_frame_clock = clutter_timeline_get_frame_clock (timeline); + g_object_unref (timeline); g_assert_null (timeline_frame_clock); g_assert_null (first_view); g_assert_null (first_view_frame_clock);