aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/itip-formatter
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2008-02-25 19:00:58 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2008-02-25 19:00:58 +0800
commitfa622e0af76c58ad566ac184a08ec82cf7d8b49b (patch)
tree4e1c116c1f8f9c53851c798d62befea5ccacbfa7 /plugins/itip-formatter
parentf3c82ae09d287c2e581977da74d4927af5aab755 (diff)
downloadgsoc2013-evolution-fa622e0af76c58ad566ac184a08ec82cf7d8b49b.tar
gsoc2013-evolution-fa622e0af76c58ad566ac184a08ec82cf7d8b49b.tar.gz
gsoc2013-evolution-fa622e0af76c58ad566ac184a08ec82cf7d8b49b.tar.bz2
gsoc2013-evolution-fa622e0af76c58ad566ac184a08ec82cf7d8b49b.tar.lz
gsoc2013-evolution-fa622e0af76c58ad566ac184a08ec82cf7d8b49b.tar.xz
gsoc2013-evolution-fa622e0af76c58ad566ac184a08ec82cf7d8b49b.tar.zst
gsoc2013-evolution-fa622e0af76c58ad566ac184a08ec82cf7d8b49b.zip
Free the memory returned by e_cal_component_get_recurid_as_string.
2008-02-25 Chenthill Palanisamy <pchenthill@novell.com> * itip-formatter.c: (find_server), (update_attendee_status): * Free the memory returned by e_cal_component_get_recurid_as_string. svn path=/trunk/; revision=35087
Diffstat (limited to 'plugins/itip-formatter')
-rw-r--r--plugins/itip-formatter/ChangeLog5
-rw-r--r--plugins/itip-formatter/itip-formatter.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog
index d184d87e1f..e89d2578eb 100644
--- a/plugins/itip-formatter/ChangeLog
+++ b/plugins/itip-formatter/ChangeLog
@@ -1,5 +1,10 @@
2008-02-25 Chenthill Palanisamy <pchenthill@novell.com>
+ * itip-formatter.c: (find_server), (update_attendee_status): Free
+ the memory returned by e_cal_component_get_recurid_as_string.
+
+2008-02-25 Chenthill Palanisamy <pchenthill@novell.com>
+
Fixes#516408
* itip-formatter.c (find_attendee), (find_to_address),
(find_from_address), (update_item): Free the memory returned
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index 4d565f7967..209211fab6 100644
--- a/plugins/itip-formatter/itip-formatter.c
+++ b/plugins/itip-formatter/itip-formatter.c
@@ -723,7 +723,7 @@ find_server (struct _itip_puri *pitip, ECalComponent *comp)
FormatItipFindData *fd = NULL;
GSList *groups, *l, *sources_conflict = NULL, *all_sources = NULL;
const char *uid;
- const char *rid;
+ char *rid = NULL;
CamelURL *url;
char *uri;
ESource *source = NULL, *current_source = NULL;
@@ -789,7 +789,7 @@ find_server (struct _itip_puri *pitip, ECalComponent *comp)
fd = g_new0 (FormatItipFindData, 1);
fd->puri = pitip;
fd->uid = g_strdup (uid);
- fd->rid = g_strdup (rid);
+ fd->rid = rid;
if (pitip->start_time && pitip->end_time) {
start = isodate_from_time_t (pitip->start_time);
@@ -1138,7 +1138,8 @@ update_attendee_status (struct _itip_puri *pitip)
{
ECalComponent *comp = NULL;
icalcomponent *icalcomp = NULL, *org_icalcomp;
- const char *uid, *rid;
+ const char *uid;
+ char *rid = NULL;
const char *delegate;
GError *error = NULL;
@@ -1253,6 +1254,7 @@ update_attendee_status (struct _itip_puri *pitip)
cleanup:
if (comp != NULL)
g_object_unref (comp);
+ g_free (rid);
}
static void