From af88c55d471866b7e5d720ce5d757fe1c2eb4a5b Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 23 Jan 2008 17:35:26 +0000 Subject: [PATCH] Modified ical_dezonify() again. It seems that there 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(). --- webcit/ical_dezonify.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/webcit/ical_dezonify.c b/webcit/ical_dezonify.c index 24e8d88c2..2b9d6caf7 100644 --- a/webcit/ical_dezonify.c +++ b/webcit/ical_dezonify.c @@ -124,13 +124,9 @@ void ical_dezonify_backend(icalcomponent *cal, } 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; } -- 2.39.2