From 30717998cac73c0a2199e7b96fa2399113decd4a Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 25 Nov 2011 16:45:28 +0100 Subject: Bug #580394 - Comment field in a meeting request is too small --- plugins/itip-formatter/itip-formatter.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/itip-formatter/itip-formatter.c') diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index 7a66508500..916a853652 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -726,7 +726,7 @@ decrease_find_data (FormatItipFindData *fd) * * invitiations (REQUEST), but not replies (REPLY). * Replies only make sense for events with an organizer. */ - if (pitip->current_client && !e_cal_client_check_save_schedules (pitip->current_client) && + if ((!pitip->current_client || !e_cal_client_check_save_schedules (pitip->current_client)) && (pitip->method == ICAL_METHOD_PUBLISH || pitip->method == ICAL_METHOD_REQUEST) && pitip->has_organizer) { rsvp_enabled = TRUE; @@ -1376,7 +1376,8 @@ finish_message_delete_with_rsvp (struct _itip_puri *pitip, icalcomponent *ical_comp; icalproperty *prop; icalvalue *value; - const gchar *attendee, *comment; + const gchar *attendee; + gchar *comment; GSList *l, *list = NULL; gboolean found; @@ -1435,6 +1436,8 @@ finish_message_delete_with_rsvp (struct _itip_puri *pitip, comments.next = NULL; e_cal_component_set_comment_list (comp, &comments); + + g_free (comment); } e_cal_component_rescan (comp); -- cgit v1.2.3