diff options
author | Suman Manjunath <msuman@src.gnome.org> | 2008-05-23 19:17:20 +0800 |
---|---|---|
committer | Suman Manjunath <msuman@src.gnome.org> | 2008-05-23 19:17:20 +0800 |
commit | 80dd512e6956502055657c1e00ab8feb2c9a3de9 (patch) | |
tree | 9cb086d4b9a4c8b2fcab5142708854818ac545b9 /calendar/gui | |
parent | c3de7ae99fe02076f7c77ce6f92db6006e31b508 (diff) | |
download | gsoc2013-evolution-80dd512e6956502055657c1e00ab8feb2c9a3de9.tar.gz gsoc2013-evolution-80dd512e6956502055657c1e00ab8feb2c9a3de9.tar.zst gsoc2013-evolution-80dd512e6956502055657c1e00ab8feb2c9a3de9.zip |
Patch from Milan Crha <mcrha@redhat.com> ** Part of fix for bug #523402 (leak fix, reassign back the old values before freeing)
svn path=/trunk/; revision=35533
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-calendar-view.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index 2d35593103..0feebfaa4e 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -364,12 +364,14 @@ e_calendar_view_add_event (ECalendarView *cal_view, ECal *client, time_t dtstart /* set the timezone properly */ e_cal_component_get_dtstart (comp, &dt); + g_free ((char *) dt.tzid); dt.tzid = icaltimezone_get_tzid (default_zone); e_cal_component_set_dtstart (comp, &dt); dt.tzid = NULL; e_cal_component_free_datetime (&dt); e_cal_component_get_dtend (comp, &dt); + g_free ((char *) dt.tzid); dt.tzid = icaltimezone_get_tzid (default_zone); e_cal_component_set_dtend (comp, &dt); dt.tzid = NULL; |