Fix double free.
Fri Apr 4 18:29:27 2003 Owen Taylor <otaylor@redhat.com> * gtkfilechooserentry.c: Fix double free.
This commit is contained in:
@ -180,7 +180,7 @@ completion_idle_callback (GtkFileChooserEntry *chooser_entry)
|
|||||||
gtk_file_folder_list_children (chooser_entry->current_folder,
|
gtk_file_folder_list_children (chooser_entry->current_folder,
|
||||||
&child_paths,
|
&child_paths,
|
||||||
NULL); /* NULL-GError */
|
NULL); /* NULL-GError */
|
||||||
|
|
||||||
for (tmp_list = child_paths; tmp_list; tmp_list = tmp_list->next)
|
for (tmp_list = child_paths; tmp_list; tmp_list = tmp_list->next)
|
||||||
{
|
{
|
||||||
GtkFileInfo *info;
|
GtkFileInfo *info;
|
||||||
@ -245,7 +245,6 @@ completion_idle_callback (GtkFileChooserEntry *chooser_entry)
|
|||||||
}
|
}
|
||||||
|
|
||||||
gtk_file_paths_free (child_paths);
|
gtk_file_paths_free (child_paths);
|
||||||
g_slist_free (child_paths);
|
|
||||||
|
|
||||||
if (common_prefix)
|
if (common_prefix)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user