forked from AuroraMiddleware/gtk
stack: Don't leak a reference
The page holds a reference to the widget, so can't just clear this pointer.
This commit is contained in:
parent
c0c6c87781
commit
2dd85b826f
@ -1425,7 +1425,7 @@ stack_remove (GtkStack *stack,
|
||||
|
||||
was_visible = gtk_widget_get_visible (child);
|
||||
|
||||
child_info->widget = NULL;
|
||||
g_clear_object (&child_info->widget);
|
||||
|
||||
if (priv->visible_child == child_info)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user