diff options
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | calendar/gui/calendar-config.c | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 5e70bb78e5..22c2d4f89a 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2006-12-03 Harish Krishnaswamy <kharish@novell.com> + + * gui/calendar-config.c: + (calendar_config_get_icaltimezone): Fix leaks of + 'location' at various exit points. + 2006-11-28 Srinivasa Ragavan <sragavan@novell.com> Added support to print/preview from Calendar Editor. diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c index 2441b71010..6ec6386a79 100644 --- a/calendar/gui/calendar-config.c +++ b/calendar/gui/calendar-config.c @@ -228,6 +228,7 @@ calendar_config_get_icaltimezone (void) if (!(dl_comp = icalcomponent_get_first_component (icalcomp, ICAL_XDAYLIGHT_COMPONENT))) { + g_free (location); return zone; } @@ -245,7 +246,7 @@ calendar_config_get_icaltimezone (void) custom_zones = g_hash_table_new (g_str_hash, g_str_equal); } else if ((st_zone = g_hash_table_lookup (custom_zones, n_tzid))) { g_free (n_tzid); - + g_free (location); return st_zone; } @@ -255,7 +256,7 @@ calendar_config_get_icaltimezone (void) if (!s_comp) { g_free (n_tzid); icalcomponent_free (zone_comp); - + g_free (location); return zone; } |