Commit 71fbbf89 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't free info too early. (#154703, Morten Welinder)

2004-10-07  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserdefault.c (check_is_folder): Don't free
	info too early.  (#154703, Morten Welinder)
parent 002ceac8
2004-10-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (check_is_folder): Don't free
info too early. (#154703, Morten Welinder)
2004-10-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkpaned.c (gtk_paned_compute_position): Reduce rounding
......
2004-10-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (check_is_folder): Don't free
info too early. (#154703, Morten Welinder)
2004-10-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkpaned.c (gtk_paned_compute_position): Reduce rounding
......
2004-10-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (check_is_folder): Don't free
info too early. (#154703, Morten Welinder)
2004-10-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkpaned.c (gtk_paned_compute_position): Reduce rounding
......
2004-10-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (check_is_folder): Don't free
info too early. (#154703, Morten Welinder)
2004-10-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkpaned.c (gtk_paned_compute_position): Reduce rounding
......
......@@ -1059,21 +1059,18 @@ check_is_folder (GtkFileSystem *file_system, const GtkFilePath *path, GError **e
return FALSE;
is_folder = gtk_file_info_get_is_folder (info);
gtk_file_info_free (info);
if (!is_folder)
{
g_set_error (error,
GTK_FILE_SYSTEM_ERROR,
GTK_FILE_SYSTEM_ERROR_NOT_FOLDER,
"%s: %s",
gtk_file_info_get_display_name (info),
g_strerror (ENOTDIR));
g_set_error (error,
GTK_FILE_SYSTEM_ERROR,
GTK_FILE_SYSTEM_ERROR_NOT_FOLDER,
"%s: %s",
gtk_file_info_get_display_name (info),
g_strerror (ENOTDIR));
return FALSE;
}
gtk_file_info_free (info);
return TRUE;
return is_folder;
}
/* Inserts a path in the shortcuts tree, making a copy of it; alternatively,
......
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