aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-12-01 03:04:28 +0800
committerChristian Persch <chpe@src.gnome.org>2003-12-01 03:04:28 +0800
commitf62a491ba939f188b4b37ffcb150432e25c4bad0 (patch)
treecd20e848fd595023cbf4042a1d4ed30b5f3716fe
parent763b4e07e1444c08c4a393ac562621a3d6bbb373 (diff)
downloadgsoc2013-epiphany-f62a491ba939f188b4b37ffcb150432e25c4bad0.tar
gsoc2013-epiphany-f62a491ba939f188b4b37ffcb150432e25c4bad0.tar.gz
gsoc2013-epiphany-f62a491ba939f188b4b37ffcb150432e25c4bad0.tar.bz2
gsoc2013-epiphany-f62a491ba939f188b4b37ffcb150432e25c4bad0.tar.lz
gsoc2013-epiphany-f62a491ba939f188b4b37ffcb150432e25c4bad0.tar.xz
gsoc2013-epiphany-f62a491ba939f188b4b37ffcb150432e25c4bad0.tar.zst
gsoc2013-epiphany-f62a491ba939f188b4b37ffcb150432e25c4bad0.zip
Fix mem leak introduced by last commit.
2003-11-30 Christian Persch <chpe@cvs.gnome.org> * src/language-editor.c: (language_editor_add): Fix mem leak introduced by last commit.
-rw-r--r--ChangeLog6
-rw-r--r--src/language-editor.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e0c6fe3cc..ad9aeb632 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2003-11-30 Christian Persch <chpe@cvs.gnome.org>
+ * src/language-editor.c: (language_editor_add):
+
+ Fix mem leak introduced by last commit.
+
+2003-11-30 Christian Persch <chpe@cvs.gnome.org>
+
* lib/ephy-dialog.c:
Remove gtkoptionmenu.h include.
diff --git a/src/language-editor.c b/src/language-editor.c
index b864bc75c..ba8ee0f03 100644
--- a/src/language-editor.c
+++ b/src/language-editor.c
@@ -378,8 +378,10 @@ language_editor_add (LanguageEditor *editor,
if (c && strcmp (code, c) == 0)
{
/* already in list, no need to add again */
+ g_free (c);
return;
}
+ g_free (c);
}
while (gtk_tree_model_iter_next (editor->priv->model, &iter));
}