const char **modifia = NULL;
int i, deletia_count = 0, modifia_count = 0;
icaltimezone *icaltz;
- gboolean freetz = FALSE;
icalcomponent *comp, *calcomp;
icalproperty *prop;
gboolean allday = FALSE;
icalcomponent_add_property(calcomp, prop);
icaltz = get_meeting_timezone(xml_node, error);
- if (icaltz)
- freetz = TRUE;
- else
+ if (!icaltz)
icaltz = get_timezone(xml_node, error);
if (icaltz) {
}
}
- if (freetz)
+ if (!parent_zone)
icaltimezone_free(icaltz, 1);
return calcomp?:comp;
zone = icaltimezone_get_builtin_timezone(tzname);
if (zone)
- return zone;
+ return icaltimezone_copy(zone);
g_warning("Failed to load ical timezone for '%s' (%s)",
tzname, ews_tzname);