diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c index abc6147522..c5b58a58b9 100644 --- a/gtk/gtkfilechooserbutton.c +++ b/gtk/gtkfilechooserbutton.c @@ -1061,7 +1061,8 @@ gtk_file_chooser_button_finalize (GObject *object) if (priv->current_folder_while_inactive) g_object_unref (priv->current_folder_while_inactive); - g_object_unref (priv->model); + if (priv->model) + g_object_unref (priv->model); gtk_widget_unparent (priv->button); gtk_widget_unparent (priv->combo_box);