From 3adac597cff883050c09e765cb1c8e3cde05e3c9 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 15 Jun 2009 14:15:10 +0200 Subject: Leak a bit less. Use proper function prototype. The first is for mail, the second for publish-calendar plugin. --- mail/em-folder-tree.c | 1 + plugins/publish-calendar/publish-calendar.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index d765c2de7b..31144935f9 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -350,6 +350,7 @@ render_icon (GtkTreeViewColumn *column, g_object_set (renderer, "gicon", icon, NULL); g_object_unref (icon); + g_free (icon_name); } static gboolean diff --git a/plugins/publish-calendar/publish-calendar.c b/plugins/publish-calendar/publish-calendar.c index 43e093eff2..e1818d7bac 100644 --- a/plugins/publish-calendar/publish-calendar.c +++ b/plugins/publish-calendar/publish-calendar.c @@ -776,7 +776,7 @@ action_publish (EPlugin *ep, ECalMenuTargetSelect *t) error_queue_add (g_strdup (_("Could not create publish thread.")), error); } -static void +static gpointer publish_uris_set_timeout (GSList *uris) { GSList *l; @@ -804,6 +804,8 @@ publish_uris_set_timeout (GSList *uris) } g_slist_foreach (uris, (GFunc) g_free, NULL); g_slist_free (uris); + + return NULL; } gint -- cgit v1.2.3