diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/itip-formatter/ChangeLog | 5 | ||||
-rw-r--r-- | plugins/itip-formatter/itip-formatter.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog index cf7de1ef0e..22c4255674 100644 --- a/plugins/itip-formatter/ChangeLog +++ b/plugins/itip-formatter/ChangeLog @@ -1,3 +1,8 @@ +2005-07-20 Chenthill Palanisamy <pchenthill@novell.com> + + * itip-formatter.c: (format_itip_object): Fixed a memory + leak and a crash when start date does is not present. + 2005-07-19 Chenthill Palanisamy <pchenthill@novell.com> * itip-formatter.c: diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index 714ffebe05..a090e33025 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -1685,7 +1685,7 @@ format_itip_object (EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObject icalcomp = e_cal_component_get_icalcomponent (pitip->comp); /* Set the recurrence id */ - if (check_is_instance (icalcomp)) { + if (check_is_instance (icalcomp) && datetime.value) { ECalComponentRange *recur_id; *datetime.value = icaltime_convert_to_zone (*datetime.value, to_zone); @@ -1695,8 +1695,8 @@ format_itip_object (EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObject recur_id->type = E_CAL_COMPONENT_RANGE_SINGLE; recur_id->datetime = datetime; e_cal_component_set_recurid (pitip->comp, recur_id); - } - + } else + e_cal_component_free_datetime (&datetime); e_cal_component_get_dtend (pitip->comp, &datetime); pitip->end_time = 0; |