Index: calendar/ChangeLog
===================================================================
--- calendar/ChangeLog	(revision 8465)
+++ calendar/ChangeLog	(working copy)
@@ -1,5 +1,13 @@
 2008-02-07  Chenthill Palanisamy  <pchenthill@novell.com>
 
+	Fixes part of bug #510949
+	* backends/groupwise/e-cal-backend-groupwise-utils.c:
+	(e_gw_item_to_cal_component):
+	* backends/groupwise/e-cal-backend-groupwise.c: (get_deltas): Leak
+	fixes.								      
+
+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),
Index: calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
===================================================================
--- calendar/backends/groupwise/e-cal-backend-groupwise-utils.c	(revision 8465)
+++ calendar/backends/groupwise/e-cal-backend-groupwise-utils.c	(working copy)
@@ -1184,7 +1184,14 @@
 			}
 
 			e_cal_component_set_attendee_list (comp, attendee_list);
-			e_cal_component_free_attendee_list (attendee_list);
+
+			for (rl = attendee_list; rl != NULL; rl = rl->next) {
+				ECalComponentAttendee *att = rl->data;
+				g_free ((char *) att->cn);
+				g_free ((char *) att->value);
+				g_free (att);
+			}
+			g_slist_free (attendee_list);
 		}
 	}
 
Index: calendar/backends/groupwise/e-cal-backend-groupwise.c
===================================================================
--- calendar/backends/groupwise/e-cal-backend-groupwise.c	(revision 8465)
+++ calendar/backends/groupwise/e-cal-backend-groupwise.c	(working copy)
@@ -446,6 +446,7 @@
 
 		g_object_unref (item);
 		g_object_unref (modified_comp);
+		g_object_unref (cache_comp);
 	}
 	e_file_cache_thaw_changes (E_FILE_CACHE (cache));
 
Index: servers/groupwise/ChangeLog
===================================================================
--- servers/groupwise/ChangeLog	(revision 8465)
+++ servers/groupwise/ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2008-02-07  Chenthill Palanisamy  <pchenthill@novell.com>
+
+	Fixes part of bug#510949
+	* e-gw-item.c: (set_recipient_list_from_soap_parameter): leak fix.
+
 2008-01-15  Dan Winship  <danw@gnome.org>
 
 	* e-gw-message.c: Update for libsoup 2.4
Index: servers/groupwise/e-gw-item.c
===================================================================
--- servers/groupwise/e-gw-item.c	(revision 8397)
+++ servers/groupwise/e-gw-item.c	(working copy)
@@ -618,7 +618,7 @@
 
                 subparam = soup_soap_parameter_get_first_child_by_name (param_recipient, "distType");
                 if (subparam) {
-                        const char *dist_type;
+                        char *dist_type;
                         dist_type = soup_soap_parameter_get_string_value (subparam);
                         if (!strcmp (dist_type, "TO"))
                                 recipient->type = E_GW_ITEM_RECIPIENT_TO;
@@ -628,6 +628,7 @@
 				recipient->type = E_GW_ITEM_RECIPIENT_BC;
                         else
 				recipient->type = E_GW_ITEM_RECIPIENT_NONE;
+			g_free (dist_type);
                 }
 		/*FIXME  gw recipientTypes need to be added after the server is fixed. */
 
