evolution-data-server r8465 - in trunk/calendar: . backends/groupwise
- From: pchen svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r8465 - in trunk/calendar: . backends/groupwise
- Date: Thu, 7 Feb 2008 11:09:31 +0000 (GMT)
Author: pchen
Date: Thu Feb 7 11:09:31 2008
New Revision: 8465
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8465&view=rev
Log:
2008-02-07 Chenthill Palanisamy <pchenthill novell com>
Fixes part of #510949
* backends/groupwise/e-cal-backend-groupwise-utils.c:
(set_attachments_to_cal_component),
(e_gw_item_to_cal_component),
(e_gw_connection_get_freebusy_info):
* backends/groupwise/e-cal-backend-groupwise.c:
(fetch_attachments): Leak fixes.
Modified:
trunk/calendar/ChangeLog
trunk/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
trunk/calendar/backends/groupwise/e-cal-backend-groupwise.c
Modified: trunk/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
==============================================================================
--- trunk/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c (original)
+++ trunk/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c Thu Feb 7 11:09:31 2008
@@ -856,6 +856,9 @@
e_cal_component_set_attachment_list (comp, comp_attachment_list);
+ for (l = comp_attachment_list; l != NULL; l = l->next)
+ g_free (l->data);
+ g_slist_free (comp_attachment_list);
}
static void
@@ -1181,6 +1184,7 @@
}
e_cal_component_set_attendee_list (comp, attendee_list);
+ e_cal_component_free_attendee_list (attendee_list);
}
}
@@ -1193,6 +1197,10 @@
cal_organizer->cn = get_cn_from_display_name (organizer->display_name);
cal_organizer->value = g_strconcat("MAILTO:", organizer->email, NULL);
e_cal_component_set_organizer (comp, cal_organizer);
+
+ g_free ((char *) cal_organizer->cn);
+ g_free ((char*) cal_organizer->value);
+ g_free (cal_organizer);
}
/* set attachments, if any */
@@ -1755,7 +1763,7 @@
attendee_list = g_slist_append (attendee_list, &attendee);
e_cal_component_set_attendee_list (comp, attendee_list);
-
+ e_cal_component_free_attendee_list (attendee_list);
param_blocks = soup_soap_parameter_get_first_child_by_name (subparam, "blocks");
if (!param_blocks) {
Modified: trunk/calendar/backends/groupwise/e-cal-backend-groupwise.c
==============================================================================
--- trunk/calendar/backends/groupwise/e-cal-backend-groupwise.c (original)
+++ trunk/calendar/backends/groupwise/e-cal-backend-groupwise.c Thu Feb 7 11:09:31 2008
@@ -2393,6 +2393,11 @@
}
g_free (attach_store);
e_cal_component_set_attachment_list (comp, new_attach_list);
+
+ for (l = new_attach_list; l != NULL; l = l->next)
+ g_free (l->data);
+ g_slist_free (new_attach_list);
+
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]