From 8344f37af4533729197a6fa72ba1c37c7d4b2799 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Fri, 13 Jun 2003 17:31:27 +0000 Subject: free the filename. 2003-06-13 Larry Ewing * e-summary.c (e_summary_url_requested): free the filename. svn path=/trunk/; revision=21436 --- my-evolution/ChangeLog | 4 ++++ my-evolution/e-summary-rdf.c | 8 ++++---- my-evolution/e-summary.c | 2 ++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog index f7eb777b9f..b663fe4e8d 100644 --- a/my-evolution/ChangeLog +++ b/my-evolution/ChangeLog @@ -1,3 +1,7 @@ +2003-06-13 Larry Ewing + + * e-summary.c (e_summary_url_requested): free the filename. + 2003-06-05 Not Zed ** For #42691. diff --git a/my-evolution/e-summary-rdf.c b/my-evolution/e-summary-rdf.c index a0a7adf58d..e49d5d008f 100644 --- a/my-evolution/e-summary-rdf.c +++ b/my-evolution/e-summary-rdf.c @@ -202,14 +202,14 @@ tree_walk (xmlNodePtr root, char *p; /* FIXME: Hash table & UID */ - p = g_strdup_printf ("(+)", GPOINTER_TO_INT (r)); + p = g_strdup_printf ("", GPOINTER_TO_INT (r)); g_string_append (html, p); g_free (p); } else { char *p; /* FIXME: Hash table & UID */ - p = g_strdup_printf ("(-)", GPOINTER_TO_INT (r)); + p = g_strdup_printf ("", GPOINTER_TO_INT (r)); g_string_append (html, p); g_free (p); } @@ -260,7 +260,7 @@ tree_walk (xmlNodePtr root, u = layer_find(channel->children, "link", ""); if (*u != '\0') - g_string_sprintfa (html, "", u); + g_string_sprintfa (html, "", u); if (charset) { char *tmp = e_utf8_from_charset_string (charset, t); @@ -285,7 +285,7 @@ tree_walk (xmlNodePtr root, for (i = 0; i < items; i++) { char *p = layer_find (item[i]->children, "title", "No information"); - tmp = g_strdup_printf ("
  • \n", layer_find_url(item[i]->children, "link", "")); + tmp = g_strdup_printf ("
  • \n", layer_find_url(item[i]->children, "link", "")); g_string_append (html, tmp); g_free (tmp); diff --git a/my-evolution/e-summary.c b/my-evolution/e-summary.c index 3cccc4bb7c..29ce61b28c 100644 --- a/my-evolution/e-summary.c +++ b/my-evolution/e-summary.c @@ -441,6 +441,7 @@ e_summary_url_requested (GtkHTML *html, contents = e_read_file_with_length (filename, &length); if (contents == NULL) { + g_free (filename); return; } @@ -453,6 +454,7 @@ e_summary_url_requested (GtkHTML *html, gtk_html_stream_write (stream, img->buffer, img->bufsize); gtk_html_stream_close (stream, GTK_HTML_STREAM_OK); + g_free (filename); } static void -- cgit v1.2.3