From 660c728dcca85bb4f0f1533ae9fb26d0bf0f1b8a Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 27 Mar 2008 13:08:06 +0000 Subject: ** Fix for bug #523541 2008-03-27 Milan Crha ** Fix for bug #523541 * itip-formatter.c: (find_server): Do not leak memory returned by e_cal_component_get_recurid_as_string. svn path=/trunk/; revision=35275 --- plugins/itip-formatter/ChangeLog | 7 +++++++ plugins/itip-formatter/itip-formatter.c | 3 +++ 2 files changed, 10 insertions(+) diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog index e89d2578eb..ab9127e883 100644 --- a/plugins/itip-formatter/ChangeLog +++ b/plugins/itip-formatter/ChangeLog @@ -1,3 +1,10 @@ +2008-03-27 Milan Crha + + ** Fix for bug #523541 + + * itip-formatter.c: (find_server): + Do not leak memory returned by e_cal_component_get_recurid_as_string. + 2008-02-25 Chenthill Palanisamy * itip-formatter.c: (find_server), (update_attendee_status): Free diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index 209211fab6..cd7199920b 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -790,6 +790,8 @@ find_server (struct _itip_puri *pitip, ECalComponent *comp) fd->puri = pitip; fd->uid = g_strdup (uid); fd->rid = rid; + /* avoid free this at the end */ + rid = NULL; if (pitip->start_time && pitip->end_time) { start = isodate_from_time_t (pitip->start_time); @@ -815,6 +817,7 @@ find_server (struct _itip_puri *pitip, ECalComponent *comp) g_slist_free (all_sources); g_slist_free (sources_conflict); g_free (uri); + g_free (rid); } static void -- cgit