From 15fce640f6945bdf8fc634414747cc294d183207 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 22 Dec 2003 14:05:17 +0000 Subject: Fix mem leak. (Found by Crispin.) 2003-12-22 Christian Persch * embed/ephy-encodings.c: (ephy_encodings_add_recent): Fix mem leak. (Found by Crispin.) --- embed/ephy-encodings.c | 1 + 1 file changed, 1 insertion(+) (limited to 'embed/ephy-encodings.c') diff --git a/embed/ephy-encodings.c b/embed/ephy-encodings.c index c66adde85..2500c78b8 100644 --- a/embed/ephy-encodings.c +++ b/embed/ephy-encodings.c @@ -294,6 +294,7 @@ ephy_encodings_add_recent (EphyEncodings *encodings, (GCompareFunc) strcmp); if (element != NULL) { + g_free (element->data); encodings->priv->recent = g_slist_remove_link (encodings->priv->recent, element); } -- cgit v1.2.3