Commit 081488f8 authored by Matthias Clasen's avatar Matthias Clasen Committed by Daniel Boles

file button: Don't leak rows

The file chooser button manually manages the memory of
data in its model, so it needs to explicitly free the
parent 7de01b31
......@@ -994,8 +994,11 @@ gtk_file_chooser_button_finalize (GObject *object)
if (priv->current_folder_while_inactive)
g_object_unref (priv->current_folder_while_inactive);
if (priv->model != NULL)
g_object_unref (priv->model);
if (priv->model)
model_remove_rows (button, 0, gtk_tree_model_iter_n_children (priv->model, NULL));
g_object_unref (priv->model);
G_OBJECT_CLASS (gtk_file_chooser_button_parent_class)->finalize (object);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment