evolution-data-server r8514 - in trunk: calendar calendar/backends/groupwise servers/groupwise



Author: mcrha
Date: Wed Feb 20 11:05:47 2008
New Revision: 8514
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8514&view=rev

Log:
2008-02-20  Chenthill Palanisamy  <pchenthill novell com>

	Fixes part of bug#510949
	* servers/groupwise/e-gw-item.c: (set_recipient_list_from_soap_parameter):
	* calendar/backends/groupwise/e-cal-backend-groupwise-utils.c: (e_gw_item_to_cal_component):
	* calendar/backends/groupwise/e-cal-backend-groupwise.c: (get_deltas):
	Leak fix.



Modified:
   trunk/calendar/ChangeLog
   trunk/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c
   trunk/calendar/backends/groupwise/e-cal-backend-groupwise.c
   trunk/servers/groupwise/ChangeLog
   trunk/servers/groupwise/e-gw-item.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	Wed Feb 20 11:05:47 2008
@@ -1198,7 +1198,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);
 		}
 	}
 

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	Wed Feb 20 11:05:47 2008
@@ -447,6 +447,7 @@
 
 		g_object_unref (item);
 		g_object_unref (modified_comp);
+		g_object_unref (cache_comp);
 	}
 	e_file_cache_thaw_changes (E_FILE_CACHE (cache));
 

Modified: trunk/servers/groupwise/e-gw-item.c
==============================================================================
--- trunk/servers/groupwise/e-gw-item.c	(original)
+++ trunk/servers/groupwise/e-gw-item.c	Wed Feb 20 11:05:47 2008
@@ -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. */
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]