Index: calendar/gui/e-calendar-view.c
===================================================================
--- calendar/gui/e-calendar-view.c	(revision 35219)
+++ calendar/gui/e-calendar-view.c	(working copy)
@@ -366,11 +366,13 @@ e_calendar_view_add_event (ECalendarView
 	e_cal_component_get_dtstart (comp, &dt);
 	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);
 	dt.tzid = icaltimezone_get_tzid (default_zone);
 	e_cal_component_set_dtend (comp, &dt);
+	dt.tzid = NULL;
 	e_cal_component_free_datetime (&dt);
 
 	e_cal_component_commit_sequence (comp);
Index: calendar/ChangeLog
===================================================================
--- calendar/ChangeLog	(revision 35219)
+++ calendar/ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2008-03-19  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #523402
+
+	* gui/e-calendar-view.c: (e_calendar_view_add_event):
+	Do not free value returned by icaltimezone_get_tzid.
+
 2008-03-13  Milan Crha  <mcrha@redhat.com>
 
 	** Fix for bug #512543
