[Commits] vcal_folder.c 1.2.2.114 1.2.2.115

colin at claws-mail.org colin at claws-mail.org
Sat Oct 29 10:08:42 CEST 2011


Update of /home/claws-mail/plugins/vcalendar/src
In directory claws-mail:/tmp/cvs-serv8564/src

Modified Files:
      Tag: gtk2
	vcal_folder.c 
Log Message:
2011-10-29 [colin]	2.0.11cvs5

	* src/vcal_folder.c
		Fix bug #2531, "vCalendar has major memory leak"

Index: vcal_folder.c
===================================================================
RCS file: /home/claws-mail/plugins/vcalendar/src/vcal_folder.c,v
retrieving revision 1.2.2.114
retrieving revision 1.2.2.115
diff -u -d -r1.2.2.114 -r1.2.2.115
--- vcal_folder.c	11 Oct 2011 07:15:28 -0000	1.2.2.114
+++ vcal_folder.c	29 Oct 2011 08:08:40 -0000	1.2.2.115
@@ -1447,7 +1447,8 @@
 	result = g_strdup_printf(_("\nThese are the events planned %s:\n"),
 			datestr?datestr:"never");
 	
-	for (cur = g_slist_reverse(strs); cur; cur = cur->next) {
+	strs = g_slist_reverse(strs);
+	for (cur = strs; cur; cur = cur->next) {
 		int e_len = strlen(result);
 		int n_len = strlen((gchar *)cur->data);
 		if (e_len) {
@@ -2277,6 +2278,7 @@
 	g_free(tzid);
 	g_free(recur);
 	g_free(int_ical);
+	icalcomponent_free(comp);
 	return event;
 }
 



More information about the Commits mailing list