testsuite: Clean up unexpected children

If you call gtk_widget_set_parent on an unsuspecting
parent widget, it is your reponsibility to clean up
before the parent gets finalized.
This commit is contained in:
Matthias Clasen 2020-05-09 17:31:18 -04:00
parent ddebf07236
commit 466d2a84de

View File

@ -335,9 +335,11 @@ test_overlap2 (void)
g_assert_cmpint (act1, ==, 0);
g_assert_cmpint (act2, ==, 1);
gtk_widget_destroy (text);
g_object_unref (group1);
g_object_unref (group2);
gtk_widget_unparent (child);
g_object_unref (g_object_ref_sink (text));
}
/* Test that gtk_widget_class_query_action