summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesystemunix.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2004-03-03 00:38:19 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2004-03-03 00:38:19 +0000
commite50fb6876339163a7c57d48742fc019590800334 (patch)
tree36e651ba7f7f6e0ee24bca2bed9ec7d65dff2c52 /gtk/gtkfilesystemunix.c
parent2169f50919be21b48fe1916af7ab663ac8d0b1a7 (diff)
downloadgtk+-e50fb6876339163a7c57d48742fc019590800334.tar.gz
Handle errors in setting the path bar's path. Fixes #136000, based on a
2004-03-02 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_current_folder): Handle errors in setting the path bar's path. Fixes #136000, based on a patch by Morten Welinder. * gtk/gtkfilesystemunix.c (gtk_file_system_unix_insert_bookmark): Don't free our own propagated error. * gtk/gtkpathbar.c (gtk_path_bar_set_path): Likewise, and free the parent_path upon error. Fixes #136006, patch by Morten Welinder. (gtk_path_bar_set_path): Unref the file_folder upon error. (gtk_path_bar_set_path): Return a boolean success code.
Diffstat (limited to 'gtk/gtkfilesystemunix.c')
-rw-r--r--gtk/gtkfilesystemunix.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gtk/gtkfilesystemunix.c b/gtk/gtkfilesystemunix.c
index 77649316fa..0b54133a7a 100644
--- a/gtk/gtkfilesystemunix.c
+++ b/gtk/gtkfilesystemunix.c
@@ -1086,7 +1086,6 @@ gtk_file_system_unix_insert_bookmark (GtkFileSystem *file_system,
if (!bookmark_list_read (&bookmarks, &err) && err->code != G_FILE_ERROR_NOENT)
{
g_propagate_error (error, err);
- g_error_free (err);
return FALSE;
}