aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/itip-formatter
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-10-01 15:44:05 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-10-01 15:44:05 +0800
commit67250759b59c1cfd3e9ffdedf62b3fcc9408c211 (patch)
tree552f0a16a1f410bdf61cf11ed1f1dc6373ffe557 /plugins/itip-formatter
parent203034b3f4c0869197c2195c87e14675e6db5f69 (diff)
downloadgsoc2013-evolution-67250759b59c1cfd3e9ffdedf62b3fcc9408c211.tar
gsoc2013-evolution-67250759b59c1cfd3e9ffdedf62b3fcc9408c211.tar.gz
gsoc2013-evolution-67250759b59c1cfd3e9ffdedf62b3fcc9408c211.tar.bz2
gsoc2013-evolution-67250759b59c1cfd3e9ffdedf62b3fcc9408c211.tar.lz
gsoc2013-evolution-67250759b59c1cfd3e9ffdedf62b3fcc9408c211.tar.xz
gsoc2013-evolution-67250759b59c1cfd3e9ffdedf62b3fcc9408c211.tar.zst
gsoc2013-evolution-67250759b59c1cfd3e9ffdedf62b3fcc9408c211.zip
2007-10-01 mcrha Fix for bug #428402
svn path=/trunk/; revision=34341
Diffstat (limited to 'plugins/itip-formatter')
-rw-r--r--plugins/itip-formatter/ChangeLog7
-rw-r--r--plugins/itip-formatter/itip-formatter.c5
2 files changed, 10 insertions, 2 deletions
diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog
index 11fe3e1235..7f8cd6037b 100644
--- a/plugins/itip-formatter/ChangeLog
+++ b/plugins/itip-formatter/ChangeLog
@@ -1,3 +1,10 @@
+2007-10-01 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #428402
+
+ * itip-formatter.c: (extract_itip_data): First move to next component, then
+ remove last alarm and then free that last component.
+
2007-09-07 Chenthill Palanisamy <pchenthill@novell.com>
Fixes #273417
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index 79c19e4dc3..fce7153f0c 100644
--- a/plugins/itip-formatter/itip-formatter.c
+++ b/plugins/itip-formatter/itip-formatter.c
@@ -1481,9 +1481,10 @@ extract_itip_data (FormatItipPObject *pitip, GtkContainer *container)
/* Strip out alarms for security purposes */
alarm_iter = icalcomponent_begin_component (pitip->ical_comp, ICAL_VALARM_COMPONENT);
while ((alarm_comp = icalcompiter_deref (&alarm_iter)) != NULL) {
- icalcomponent_remove_component (pitip->ical_comp, alarm_comp);
-
icalcompiter_next (&alarm_iter);
+
+ icalcomponent_remove_component (pitip->ical_comp, alarm_comp);
+ icalcomponent_free (alarm_comp);
}
}