From af43e15005c137bc8ffbca4d3e0622bb4822fc8c Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Tue, 7 Aug 2001 01:57:09 +0000 Subject: free the CalComponentDateTime and icaltimetype values after finishing with 2001-08-06 Damon Chaplin * e-summary-tasks.c (sort_uids): (get_todays_uids): (generate_html): * e-summary-calendar.c (sort_uids): free the CalComponentDateTime and icaltimetype values after finishing with them. svn path=/trunk/; revision=11720 --- my-evolution/e-summary-tasks.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'my-evolution/e-summary-tasks.c') diff --git a/my-evolution/e-summary-tasks.c b/my-evolution/e-summary-tasks.c index d691b58e1e..22428aa5ce 100644 --- a/my-evolution/e-summary-tasks.c +++ b/my-evolution/e-summary-tasks.c @@ -117,6 +117,7 @@ sort_uids (gconstpointer a, CalClient *client = user_data; CalClientGetStatus status; CalComponentDateTime start_a, start_b; + int retval; /* a after b then return > 0 */ @@ -131,7 +132,12 @@ sort_uids (gconstpointer a, cal_component_get_dtstart (comp_a, &start_a); cal_component_get_dtstart (comp_b, &start_b); - return icaltime_compare (*start_a.value, *start_b.value); + retval = icaltime_compare (*start_a.value, *start_b.value); + + cal_component_free_datetime (&start_a); + cal_component_free_datetime (&start_b); + + return retval; } static GList * @@ -165,6 +171,7 @@ get_todays_uids (CalClient *client, today = g_list_append (today, g_strdup (uid)); } } + cal_component_free_datetime (&end); } if (today == NULL) { @@ -248,6 +255,7 @@ generate_html (gpointer data) "alt=\"\" width=\"16\" height=\"16\">   " "%s
", text.value); + cal_component_free_icaltimetype (completed); } g_string_append (string, tmp); -- cgit