[gtk/window-destroy: 16/16] testsuite: Clean up unexpected children



commit 8771a8316e5fb27633e466d26f74bb6b014c197b
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 9 17:31:18 2020 -0400

    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.

 testsuite/gtk/action.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/testsuite/gtk/action.c b/testsuite/gtk/action.c
index 6665f10f6b..c0f5265395 100644
--- a/testsuite/gtk/action.c
+++ b/testsuite/gtk/action.c
@@ -335,6 +335,7 @@ test_overlap2 (void)
   g_assert_cmpint (act1, ==, 0);
   g_assert_cmpint (act2, ==, 1);
 
+  gtk_widget_unparent (child);
   g_object_unref (g_object_ref_sink (text));
   g_object_unref (group1);
   g_object_unref (group2);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]