aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-06-15 20:15:10 +0800
committerMilan Crha <mcrha@redhat.com>2009-06-15 20:15:10 +0800
commit3adac597cff883050c09e765cb1c8e3cde05e3c9 (patch)
treef0034f28e2aa6a3ce16bf4811d1aa6f799c553ec
parented2d22755ff21516e3284f38eefd080102dd3715 (diff)
downloadgsoc2013-evolution-3adac597cff883050c09e765cb1c8e3cde05e3c9.tar.gz
gsoc2013-evolution-3adac597cff883050c09e765cb1c8e3cde05e3c9.tar.zst
gsoc2013-evolution-3adac597cff883050c09e765cb1c8e3cde05e3c9.zip
Leak a bit less. Use proper function prototype.
The first is for mail, the second for publish-calendar plugin.
-rw-r--r--mail/em-folder-tree.c1
-rw-r--r--plugins/publish-calendar/publish-calendar.c4
2 files changed, 4 insertions, 1 deletions
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