Free the location if it's set. Otherwise one copy of the location of each
* src/libical/icaltimezone.c
(icaltimezone_get_vtimezone_properties): Free the location if it's
set. Otherwise one copy of the location of each built-in timezone
we use gets leaked.
svn path=/trunk/; revision=18447
This commit is contained in:
@ -1,3 +1,10 @@
|
||||
2002-10-25 Dan Winship <danw@ximian.com>
|
||||
|
||||
* src/libical/icaltimezone.c
|
||||
(icaltimezone_get_vtimezone_properties): Free the location if it's
|
||||
set. Otherwise one copy of the location of each built-in timezone
|
||||
we use gets leaked.
|
||||
|
||||
2002-10-15 Rodrigo Moya <rodrigo@ximian.com>
|
||||
|
||||
Fixes #25153
|
||||
|
||||
@ -267,6 +267,9 @@ icaltimezone_get_vtimezone_properties (icaltimezone *zone,
|
||||
if (!tzid)
|
||||
return 0;
|
||||
|
||||
if (zone->location)
|
||||
free (zone->location);
|
||||
|
||||
zone->tzid = strdup (tzid);
|
||||
zone->component = component;
|
||||
zone->location = icaltimezone_get_location_from_vtimezone (component);
|
||||
|
||||
Reference in New Issue
Block a user