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:
Matthias Clasen 2019-02-13 08:42:58 -05:00
parent c0c6c87781
commit 2dd85b826f

View File

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