is never a need to free the icaltimezone, as it will always be one
of three things:
1. A built-in timezone (memory belongs to libical)
2. Hardcoded UTC timezone (memory belongs to libical)
3. A supplied timezone from another component (memory belongs to caller)
Removed the call to icaltimezone_free().
}
if (t == NULL) {
- t = icaltimezone_copy(get_default_icaltimezone());
+ t = get_default_icaltimezone();
}
- icaltimezone_convert_time(&TheTime,
- t,
- icaltimezone_get_utc_timezone()
- );
- icaltimezone_free (t, 1);
+ icaltimezone_convert_time(&TheTime, t, icaltimezone_get_utc_timezone());
TheTime.is_utc = 1;
}