Commit 941abf87 authored by Christian Persch's avatar Christian Persch
Browse files

Bug 554702 – gtkfilesystem leaks GError

Also fixes some "format not a string literal and no format arguments"
warnings.

svn path=/trunk/; revision=21611
parent 28e58945
2008-10-08 Christian Persch <chpe@gnome.org>
Bug 554702 – gtkfilesystem leaks GError
* gtk/gtkfilesystem.c (_gtk_file_system_init): Free the GError.
2008-10-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):
......
......@@ -323,7 +323,7 @@ save_bookmarks (GFile *bookmarks_file,
NULL, FALSE, 0, NULL,
NULL, &error))
{
g_critical (error->message);
g_critical ("%s", error->message);
g_error_free (error);
}
......@@ -531,7 +531,10 @@ _gtk_file_system_init (GtkFileSystem *file_system)
G_FILE_MONITOR_NONE,
NULL, &error);
if (error)
g_warning (error->message);
{
g_warning ("%s", error->message);
g_error_free (error);
}
else
g_signal_connect (priv->bookmarks_monitor, "changed",
G_CALLBACK (bookmarks_file_changed), file_system);
......@@ -1362,7 +1365,10 @@ gtk_folder_constructed (GObject *object)
priv->directory_monitor = g_file_monitor_directory (priv->folder_file, G_FILE_MONITOR_NONE, NULL, &error);
if (error)
g_warning (error->message);
{
g_warning ("%s", error->message);
g_error_free (error);
}
else
g_signal_connect (priv->directory_monitor, "changed",
G_CALLBACK (directory_monitor_changed), 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