summaryrefslogtreecommitdiff
path: root/gtk/gtkstack.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkstack.c')
-rw-r--r--gtk/gtkstack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 633a5ae712..c1c843a45a 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -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)
{