aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/itip-formatter/itip-formatter.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2005-07-20 23:40:54 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-07-20 23:40:54 +0800
commit728af30909db2d46bcbf019c51af53a2b40fe15d (patch)
tree8c92f370bac065a25df5df26f14ca6f7279faf97 /plugins/itip-formatter/itip-formatter.c
parenta5aa76af675f426c3419dd9b32c9ecdf6b6082fc (diff)
downloadgsoc2013-evolution-728af30909db2d46bcbf019c51af53a2b40fe15d.tar.gz
gsoc2013-evolution-728af30909db2d46bcbf019c51af53a2b40fe15d.tar.zst
gsoc2013-evolution-728af30909db2d46bcbf019c51af53a2b40fe15d.zip
Fixed a memory leak and a crash when start date does is not present.
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. svn path=/trunk/; revision=29820
Diffstat (limited to 'plugins/itip-formatter/itip-formatter.c')
-rw-r--r--plugins/itip-formatter/itip-formatter.c6
1 files changed, 3 insertions, 3 deletions
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;