diff options
author | Milan Crha <mcrha@redhat.com> | 2008-06-02 12:24:36 +0800 |
---|---|---|
committer | Bharath Acharya <abharath@src.gnome.org> | 2008-06-02 12:24:36 +0800 |
commit | 851c7fac433e4c5a5ac04398c89480f4500c30a9 (patch) | |
tree | 54b0c95289313e4366f98073ec4d2b2037d396ac /calendar/gui/e-itip-control.c | |
parent | cef99d25f5913db5b8a4b4d6389920064a41dd26 (diff) | |
download | gsoc2013-evolution-851c7fac433e4c5a5ac04398c89480f4500c30a9.tar.gz gsoc2013-evolution-851c7fac433e4c5a5ac04398c89480f4500c30a9.tar.zst gsoc2013-evolution-851c7fac433e4c5a5ac04398c89480f4500c30a9.zip |
Committing on behalf of Milan Crha <mcrha@redhat.com>
2008-05-29 Milan Crha <mcrha@redhat.com>
** Fix for bug #535459
svn path=/trunk/; revision=35566
Diffstat (limited to 'calendar/gui/e-itip-control.c')
-rw-r--r-- | calendar/gui/e-itip-control.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index 81a2458106..f574d86b06 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -1676,8 +1676,14 @@ e_itip_control_set_data (EItipControl *itip, const gchar *text) priv->top_level = e_cal_util_new_top_level (); priv->main_comp = icalparser_parse_string (priv->vcalendar); - if (priv->main_comp == NULL) { + if (priv->main_comp == NULL || !is_icalcomp_valid (priv->main_comp)) { write_error_html (itip, _("The attachment does not contain a valid calendar message")); + + if (priv->main_comp) { + icalcomponent_free (priv->main_comp); + priv->main_comp = NULL; + } + return; } |