aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--embed/ephy-favicon-cache.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 44b5a939d..73e8883b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-01-25 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/ephy-favicon-cache.c: (remove_obsolete_icons):
+
+ Fix mem leak.
+
2004-01-25 Marco Pesenti Gritti <marco@gnome.org>
* lib/ephy-file-helpers.c: (ephy_file_tmp_dir),
diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c
index 3421e1ce5..df2815855 100644
--- a/embed/ephy-favicon-cache.c
+++ b/embed/ephy-favicon-cache.c
@@ -177,13 +177,15 @@ remove_obsolete_icons (EphyFaviconCache *eb)
if (icon_is_obsolete (kid, &current_date))
{
const char *filename;
- const char *path;
+ char *path;
filename = ephy_node_get_property_string
(kid, EPHY_NODE_FAVICON_PROP_FILENAME);
path = g_build_filename (eb->priv->directory,
filename, NULL);
gnome_vfs_unlink (path);
+
+ g_free (path);
ephy_node_unref (kid);
}
}