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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3084>
This commit is contained in:
Sebastian Wick 2023-06-20 20:35:45 +02:00 committed by Marge Bot
parent 712c9a1700
commit 985d0dc3ab

View File

@ -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);