diff options
author | Dan Winship <danw@src.gnome.org> | 2002-10-27 23:58:25 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2002-10-27 23:58:25 +0800 |
commit | e5d1afdc538dbb0d298ef6c8352d165384c42930 (patch) | |
tree | 2f775c103e630aad342e4e66f86aeaaeb3caf529 /libical/src | |
parent | 8e608706e0d2544677fa213b3c17ce83924f6b1e (diff) | |
download | gsoc2013-evolution-e5d1afdc538dbb0d298ef6c8352d165384c42930.tar.gz gsoc2013-evolution-e5d1afdc538dbb0d298ef6c8352d165384c42930.tar.zst gsoc2013-evolution-e5d1afdc538dbb0d298ef6c8352d165384c42930.zip |
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
Diffstat (limited to 'libical/src')
-rw-r--r-- | libical/src/libical/icaltimezone.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libical/src/libical/icaltimezone.c b/libical/src/libical/icaltimezone.c index 6303bec2f1..8841584d9e 100644 --- a/libical/src/libical/icaltimezone.c +++ b/libical/src/libical/icaltimezone.c @@ -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); |