1
0
evolution-data-server/bnc-388579-ical-fix-for-exch.patch

29 lines
844 B
Diff

--- calendar/libecal/e-cal-component.c 2008-05-09 13:12:53.000000000 +0530
+++ calendar/libecal/e-cal-component.c 2008-05-09 13:24:49.000000000 +0530
@@ -307,8 +307,15 @@ free_icalcomponent (ECalComponent *comp,
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;
@@ -532,6 +539,7 @@ scan_attachment (GSList **attachment_lis
attachment->prop = prop;
attachment->attach = icalproperty_get_attach (prop);
+ icalattach_ref (attachment->attach);
*attachment_list = g_slist_append (*attachment_list, attachment);
}