From fa622e0af76c58ad566ac184a08ec82cf7d8b49b Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Mon, 25 Feb 2008 11:00:58 +0000 Subject: Free the memory returned by e_cal_component_get_recurid_as_string. 2008-02-25 Chenthill Palanisamy * 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 --- plugins/itip-formatter/ChangeLog | 5 +++++ plugins/itip-formatter/itip-formatter.c | 8 +++++--- 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,3 +1,8 @@ +2008-02-25 Chenthill Palanisamy + + * 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 Fixes#516408 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 -- cgit v1.2.3