aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-12-22 22:05:17 +0800
committerChristian Persch <chpe@src.gnome.org>2003-12-22 22:05:17 +0800
commit15fce640f6945bdf8fc634414747cc294d183207 (patch)
tree8cfdf2d31faf15fc32c769ba858c0b9db54f5448
parentf606a4b6e99b759e408b4b9e7e7a8dca25b306f4 (diff)
downloadgsoc2013-epiphany-15fce640f6945bdf8fc634414747cc294d183207.tar
gsoc2013-epiphany-15fce640f6945bdf8fc634414747cc294d183207.tar.gz
gsoc2013-epiphany-15fce640f6945bdf8fc634414747cc294d183207.tar.bz2
gsoc2013-epiphany-15fce640f6945bdf8fc634414747cc294d183207.tar.lz
gsoc2013-epiphany-15fce640f6945bdf8fc634414747cc294d183207.tar.xz
gsoc2013-epiphany-15fce640f6945bdf8fc634414747cc294d183207.tar.zst
gsoc2013-epiphany-15fce640f6945bdf8fc634414747cc294d183207.zip
Fix mem leak. (Found by Crispin.)
2003-12-22 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-encodings.c: (ephy_encodings_add_recent): Fix mem leak. (Found by Crispin.)
-rw-r--r--ChangeLog6
-rw-r--r--embed/ephy-encodings.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 874f762e5..2a07740dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-12-22 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/ephy-encodings.c: (ephy_encodings_add_recent):
+
+ Fix mem leak. (Found by Crispin.)
+
2003-12-22 Marco Pesenti Gritti <marco@gnome.org>
* embed/mozilla/MozDownload.cpp:
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);
}