Plug a memleak. (#455721, Christian Persch)

2007-07-16  Matthias Clasen <mclasen@redhat.com>

        * gtk/gtkfilechooserbutton.c (model_add_special_get_info_cb):
        Plug a memleak. (#455721, Christian Persch)



svn path=/trunk/; revision=18476
This commit is contained in:
Matthias Clasen 2007-07-16 15:30:43 +00:00 committed by Matthias Clasen
parent 1053a08cc9
commit 9046ebc9f1
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-07-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (model_add_special_get_info_cb):
Plug a memleak. (#455721, Christian Persch)
2007-07-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkscalebutton.c: Apply a patch by Guillaume Cottenceau

View File

@ -1667,7 +1667,8 @@ model_add_special_get_info_cb (GtkFileSystemHandle *handle,
gtk_list_store_set (GTK_LIST_STORE (data->button->priv->model), &iter,
DISPLAY_NAME_COLUMN, gtk_file_info_get_display_name (info),
-1);
g_free (name);
out:
g_object_unref (data->button);
gtk_tree_row_reference_free (data->row_ref);