From: Matthias Clasen Date: Tue, 14 Jan 2020 20:42:01 +0000 (-0500) Subject: fontchooser: Fix up the previous commit X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~329 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=34f1ae8fadbf493bb3579438de88cb315ef91b88;p=gtk4.git fontchooser: Fix up the previous commit --- diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c index 686a8de13a..0ad56e8318 100644 --- a/gtk/gtkfontchooserwidget.c +++ b/gtk/gtkfontchooserwidget.c @@ -716,7 +716,8 @@ gtk_font_chooser_widget_dispose (GObject *object) GtkFontChooserWidget *self = GTK_FONT_CHOOSER_WIDGET (object); GtkFontChooserWidgetPrivate *priv = gtk_font_chooser_widget_get_instance_private (self); - gtk_tree_view_set_model (GTK_TREE_VIEW (priv->family_face_list), NULL); + if (priv->family_face_list) + gtk_tree_view_set_model (GTK_TREE_VIEW (priv->family_face_list), NULL); g_clear_pointer (&priv->stack, gtk_widget_unparent); G_OBJECT_CLASS (gtk_font_chooser_widget_parent_class)->dispose (object);