From 336000a2d7b27698e2e5c102a9ceeaab12202a12 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Tue, 24 Aug 2010 01:17:33 +0100 Subject: Bug 627601 - Memory leak in itip_get_comp_attendee() --- plugins/itip-formatter/itip-formatter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index c0d4e1034e..5e46cb42b6 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -1580,7 +1580,6 @@ extract_itip_data (struct _itip_puri *pitip, GtkContainer *container, gboolean * icalcomponent *alarm_comp; icalcompiter alarm_iter; ECalComponent *comp; - gchar *my_address; if (!pitip->vcalendar) { set_itip_error (pitip, container, @@ -1701,6 +1700,8 @@ extract_itip_data (struct _itip_puri *pitip, GtkContainer *container, gboolean * } if (icalcomponent_isa (pitip->ical_comp) != ICAL_VJOURNAL_COMPONENT) { + gchar *my_address; + prop = NULL; comp = e_cal_component_new (); e_cal_component_set_icalcomponent (comp, icalcomponent_new_clone (pitip->ical_comp)); @@ -1722,6 +1723,7 @@ extract_itip_data (struct _itip_puri *pitip, GtkContainer *container, gboolean * pitip->delegator_address = g_strdup (itip_strip_mailto (delfrom)); } } + g_free(my_address); prop = NULL; /* Determine any delegate sections */ -- cgit v1.2.3