[evolution] Leak a bit less. Use proper function prototype.



commit 3adac597cff883050c09e765cb1c8e3cde05e3c9
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jun 15 14:15:10 2009 +0200

    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 deletions(-)
---
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index d765c2d..3114493 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 43e093e..e1818d7 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]