evolution-data-server r8867 - in trunk/calendar: . libecal



Author: abharath
Date: Thu May 29 05:36:33 2008
New Revision: 8867
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8867&view=rev

Log:
Committing on behalf of Chenthill Palanisamy  <pchenthill novell com>

2008-05-29  Chenthill Palanisamy  <pchenthill novell com>

        ** Fixes #388579 (bnc)

         * libecal/e-cal-component.c: (free_icalcomponent): Fix for Exchange 
           crasher. Part of the fix was already committed. This is the last hunk.


Modified:
   trunk/calendar/ChangeLog
   trunk/calendar/libecal/e-cal-component.c

Modified: trunk/calendar/libecal/e-cal-component.c
==============================================================================
--- trunk/calendar/libecal/e-cal-component.c	(original)
+++ trunk/calendar/libecal/e-cal-component.c	Thu May 29 05:36:33 2008
@@ -307,8 +307,15 @@
 
 	priv->status = NULL;
 
-	for (l = priv->attachment_list; l != NULL; l = l->next)
-		g_free (l->data);
+	for (l = priv->attachment_list; l != NULL; l = l->next) {
+		struct attachment *attachment;
+
+		attachment = l->data;
+
+		icalattach_unref (attachment->attach);
+		g_free (attachment);
+	}
+
 	g_slist_free (priv->attachment_list);
 	priv->attachment_list = NULL;
 



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