aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/itip-formatter
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2010-08-24 08:17:33 +0800
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-08-24 08:17:33 +0800
commit336000a2d7b27698e2e5c102a9ceeaab12202a12 (patch)
treec8f5c7eb42f88d9f2d4a12f59dbdf6d34ff2db3d /plugins/itip-formatter
parent480b9e1720ae411c930c411e5b014ce9357d368c (diff)
downloadgsoc2013-evolution-336000a2d7b27698e2e5c102a9ceeaab12202a12.tar
gsoc2013-evolution-336000a2d7b27698e2e5c102a9ceeaab12202a12.tar.gz
gsoc2013-evolution-336000a2d7b27698e2e5c102a9ceeaab12202a12.tar.bz2
gsoc2013-evolution-336000a2d7b27698e2e5c102a9ceeaab12202a12.tar.lz
gsoc2013-evolution-336000a2d7b27698e2e5c102a9ceeaab12202a12.tar.xz
gsoc2013-evolution-336000a2d7b27698e2e5c102a9ceeaab12202a12.tar.zst
gsoc2013-evolution-336000a2d7b27698e2e5c102a9ceeaab12202a12.zip
Bug 627601 - Memory leak in itip_get_comp_attendee()
Diffstat (limited to 'plugins/itip-formatter')
-rw-r--r--plugins/itip-formatter/itip-formatter.c4
1 files changed, 3 insertions, 1 deletions
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 */