mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 04:31:09 +00:00
FileChooserButton: Avoid unref()ing a null model
This commit is contained in:
parent
ad9c70537d
commit
c1a5afb3a8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user