aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-01-25 21:50:37 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-25 21:50:37 +0800
commit51187edd5cca894a413004da6729ed88eee2a5ab (patch)
treec935dc489bd018be27ee1a4f6ce061d2f7f3fc74 /embed
parent6dabc7076a22b340ca3039a393424302a85df118 (diff)
downloadgsoc2013-epiphany-51187edd5cca894a413004da6729ed88eee2a5ab.tar
gsoc2013-epiphany-51187edd5cca894a413004da6729ed88eee2a5ab.tar.gz
gsoc2013-epiphany-51187edd5cca894a413004da6729ed88eee2a5ab.tar.bz2
gsoc2013-epiphany-51187edd5cca894a413004da6729ed88eee2a5ab.tar.lz
gsoc2013-epiphany-51187edd5cca894a413004da6729ed88eee2a5ab.tar.xz
gsoc2013-epiphany-51187edd5cca894a413004da6729ed88eee2a5ab.tar.zst
gsoc2013-epiphany-51187edd5cca894a413004da6729ed88eee2a5ab.zip
Fix mem leak.
2004-01-25 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-favicon-cache.c: (remove_obsolete_icons): Fix mem leak.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-favicon-cache.c4
1 files changed, 3 insertions, 1 deletions
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);
}
}