[Commits] vcal_folder.c 1.2.2.115 1.2.2.116
colin at claws-mail.org
colin at claws-mail.org
Wed Nov 2 21:51:45 CET 2011
Update of /home/claws-mail/plugins/vcalendar/src
In directory claws-mail:/tmp/cvs-serv3109/src
Modified Files:
Tag: gtk2
vcal_folder.c
Log Message:
2011-11-02 [colin] 2.0.11cvs8
* src/vcal_folder.c
Fix recurring events leak: always free IcalFeedData's
event, and always clone them instead of only recurring.
Index: vcal_folder.c
===================================================================
RCS file: /home/claws-mail/plugins/vcalendar/src/vcal_folder.c,v
retrieving revision 1.2.2.115
retrieving revision 1.2.2.116
diff -u -d -r1.2.2.115 -r1.2.2.116
--- vcal_folder.c 29 Oct 2011 08:08:40 -0000 1.2.2.115
+++ vcal_folder.c 2 Nov 2011 20:51:43 -0000 1.2.2.116
@@ -201,6 +201,8 @@
static void icalfeeddata_free(IcalFeedData *data)
{
g_free(data->pseudoevent_id);
+ if (data->event)
+ icalcomponent_free(data->event);
g_free(data);
}
@@ -551,7 +553,8 @@
if (prop) {
gchar *orig_uid = NULL;
gchar *uid = g_strdup(icalproperty_get_uid(prop));
- IcalFeedData *data = icalfeeddata_new(evt, NULL);
+ IcalFeedData *data = icalfeeddata_new(
+ icalcomponent_new_clone(evt), NULL);
int i = 0;
orig_uid = g_strdup(uid);
More information about the Commits
mailing list