[Commits] vcal_folder.c 1.2.2.113 1.2.2.114
colin at claws-mail.org
colin at claws-mail.org
Tue Oct 11 09:15:30 CEST 2011
Update of /home/claws-mail/plugins/vcalendar/src
In directory claws-mail:/tmp/cvs-serv2145/src
Modified Files:
Tag: gtk2
vcal_folder.c
Log Message:
2011-10-11 [colin] 2.0.11cvs2
* src/vcal_folder.c
Fix bug #2516, "vcalendar crashes claws". Double-free
in subscribed calendars
Index: vcal_folder.c
===================================================================
RCS file: /home/claws-mail/plugins/vcalendar/src/vcal_folder.c,v
retrieving revision 1.2.2.113
retrieving revision 1.2.2.114
diff -u -d -r1.2.2.113 -r1.2.2.114
--- vcal_folder.c 22 Mar 2011 19:16:52 -0000 1.2.2.113
+++ vcal_folder.c 11 Oct 2011 07:15:28 -0000 1.2.2.114
@@ -700,10 +700,11 @@
GSList *subs = vcal_folder_get_webcal_events_for_folder(item);
GSList *cur = NULL;
for (cur = subs; cur; cur = cur->next) {
+ /* Don't free that, it's done when subscriptions are
+ * fetched */
icalcomponent *ical = (icalcomponent *)cur->data;
VCalEvent *event = vcal_get_event_from_ical(
icalcomponent_as_ical_string(ical), NULL);
- icalcomponent_free(ical);
events = g_slist_prepend(events, event);
}
g_slist_free(subs);
More information about the Commits
mailing list