diff options
Bug #664370 - Crash when putting same component into icalcomponent
Diffstat (limited to 'plugins/publish-calendar/publish-format-fb.c')
-rw-r--r-- | plugins/publish-calendar/publish-format-fb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/publish-calendar/publish-format-fb.c b/plugins/publish-calendar/publish-format-fb.c index b818a58d08..b5895ae4c0 100644 --- a/plugins/publish-calendar/publish-format-fb.c +++ b/plugins/publish-calendar/publish-format-fb.c @@ -116,8 +116,8 @@ write_calendar (const gchar *uid, GSList *iter; for (iter = objects; iter; iter = iter->next) { - ECalComponent *comp = objects->data; - icalcomponent *icalcomp = e_cal_component_get_icalcomponent (comp); + ECalComponent *comp = iter->data; + icalcomponent *icalcomp = icalcomponent_new_clone (e_cal_component_get_icalcomponent (comp)); icalcomponent_add_component (top_level, icalcomp); } |