mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 20:51:07 +00:00
stack: clear accessible parent when removing child
Without this, the GtkStackPage may not reach a reference count of zero and therefore will be leaked. Fixes #5626
This commit is contained in:
parent
471ebabd77
commit
40d4441fd8
@ -1726,6 +1726,7 @@ stack_remove (GtkStack *stack,
|
||||
if (priv->last_visible_child == child_info)
|
||||
priv->last_visible_child = NULL;
|
||||
|
||||
gtk_accessible_set_accessible_parent (GTK_ACCESSIBLE (child), NULL, NULL);
|
||||
gtk_widget_unparent (child);
|
||||
|
||||
g_clear_object (&child_info->widget);
|
||||
|
Loading…
Reference in New Issue
Block a user