mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-30 02:57:38 +00:00
GtkApplicationWindow: Don't unref a NULL object
This commit is contained in:
parent
b42308f8e3
commit
3a088d9ac2
@ -492,8 +492,9 @@ recalculate_app_menu_state (GtkApplicationWindow *window)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gtk_widget_unparent (GTK_WIDGET (window->priv->menubar));
|
if (window->priv->menubar)
|
||||||
g_object_unref (window->priv->menubar);
|
gtk_widget_unparent (GTK_WIDGET (window->priv->menubar));
|
||||||
|
g_clear_object (&window->priv->menubar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user