aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/save-calendar
diff options
context:
space:
mode:
authorKai Juse <level21@gmx.ch>2012-01-05 21:22:04 +0800
committerMilan Crha <mcrha@redhat.com>2012-01-05 21:22:04 +0800
commitea4c16fdadd48c89bfedf04972b10674e70fcca9 (patch)
treeb09d856ffda1e79a1d10dd5c521164491a1eac02 /plugins/save-calendar
parent5aa4790e47a1cea8a94b0142922c7e6914d43694 (diff)
downloadgsoc2013-evolution-ea4c16fdadd48c89bfedf04972b10674e70fcca9.tar.gz
gsoc2013-evolution-ea4c16fdadd48c89bfedf04972b10674e70fcca9.tar.zst
gsoc2013-evolution-ea4c16fdadd48c89bfedf04972b10674e70fcca9.zip
Bug #664370 - Crash when putting same component into icalcomponent
Diffstat (limited to 'plugins/save-calendar')
-rw-r--r--plugins/save-calendar/ical-format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/save-calendar/ical-format.c b/plugins/save-calendar/ical-format.c
index 1be8ff1147..bf0a8db03a 100644
--- a/plugins/save-calendar/ical-format.c
+++ b/plugins/save-calendar/ical-format.c
@@ -128,7 +128,7 @@ do_save_calendar_ical (FormatHandler *handler,
tdata.client = source_client;
for (iter = objects; iter; iter = iter->next) {
- icalcomponent *icalcomp = iter->data;
+ icalcomponent *icalcomp = icalcomponent_new_clone (iter->data);
icalcomponent_foreach_tzid (icalcomp, insert_tz_comps, &tdata);
icalcomponent_add_component (top_level, icalcomp);