aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/itip-utils.c
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-03-18 09:46:26 +0800
committerHans Petter <hansp@src.gnome.org>2003-03-18 09:46:26 +0800
commit76d5d480974306cceaa4770620936d19a9b6170d (patch)
tree434417d2d61af46a3623319543a62e43d0fb5715 /calendar/gui/itip-utils.c
parente4c6f61966479fbcb8da64ac49bb578c7f2d5017 (diff)
downloadgsoc2013-evolution-76d5d480974306cceaa4770620936d19a9b6170d.tar
gsoc2013-evolution-76d5d480974306cceaa4770620936d19a9b6170d.tar.gz
gsoc2013-evolution-76d5d480974306cceaa4770620936d19a9b6170d.tar.bz2
gsoc2013-evolution-76d5d480974306cceaa4770620936d19a9b6170d.tar.lz
gsoc2013-evolution-76d5d480974306cceaa4770620936d19a9b6170d.tar.xz
gsoc2013-evolution-76d5d480974306cceaa4770620936d19a9b6170d.tar.zst
gsoc2013-evolution-76d5d480974306cceaa4770620936d19a9b6170d.zip
Fixes #34095
2003-03-17 Hans Petter Jansson <hpj@ximian.com> Fixes #34095 * gui/e-meeting-model.c (append_row): Don't leak meeting attendees; unref the attendee after it's assigned to model. * gui/dialogs/meeting-page.c (meeting_page_destroy): Free the actual array of deleted attendees. * gui/dialogs/event-editor.c (event_editor_destroy): Free the private structure. * gui/itip-utils.c (comp_description): Rework free/busy information composer so we can free date/time information after use. Then free it. (itip_send_comp): Free the allocated CORBA buffer for attachment data. * gui/dialogs/comp-editor-util.c (comp_editor_contacts_to_component): Free the destination contacts string once we're done with it. * gui/e-calendar-table.c (invisible_destroyed): Unref the invisible. * gui/e-day-view.c (invisible_destroyed): Ditto. * gui/e-week-view.c (invisible_destroyed): Ditto. svn path=/trunk/; revision=20329
Diffstat (limited to 'calendar/gui/itip-utils.c')
-rw-r--r--calendar/gui/itip-utils.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c
index 51bdd73982..0b1aca392e 100644
--- a/calendar/gui/itip-utils.c
+++ b/calendar/gui/itip-utils.c
@@ -489,12 +489,15 @@ comp_description (CalComponent *comp)
return CORBA_string_dup (_("Journal information"));
case CAL_COMPONENT_FREEBUSY:
cal_component_get_dtstart (comp, &dt);
- if (dt.value) {
+ if (dt.value)
start = get_label (dt.value);
- cal_component_get_dtend (comp, &dt);
- if (dt.value)
- end = get_label (dt.value);
- }
+ cal_component_free_datetime (&dt);
+
+ cal_component_get_dtend (comp, &dt);
+ if (dt.value)
+ end = get_label (dt.value);
+ cal_component_free_datetime (&dt);
+
if (start != NULL && end != NULL) {
char *tmp, *tmp_utf;
tmp = g_strdup_printf (_("Free/Busy information (%s to %s)"), start, end);
@@ -958,8 +961,10 @@ itip_send_comp (CalComponentItipMethod method, CalComponent *send_comp,
CORBA_free (filename);
if (description != NULL)
CORBA_free (description);
- if (attach_data != NULL)
+ if (attach_data != NULL) {
+ CORBA_free (attach_data->_buffer);
CORBA_free (attach_data);
+ }
return retval;
}