fontchooser: Fix up the previous commit

This commit is contained in:
Matthias Clasen 2020-01-14 15:42:01 -05:00
parent 042537cf0d
commit 34f1ae8fad

View File

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