From f62a491ba939f188b4b37ffcb150432e25c4bad0 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 30 Nov 2003 19:04:28 +0000 Subject: Fix mem leak introduced by last commit. 2003-11-30 Christian Persch * src/language-editor.c: (language_editor_add): Fix mem leak introduced by last commit. --- ChangeLog | 6 ++++++ src/language-editor.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index e0c6fe3cc..ad9aeb632 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-11-30 Christian Persch + + * src/language-editor.c: (language_editor_add): + + Fix mem leak introduced by last commit. + 2003-11-30 Christian Persch * lib/ephy-dialog.c: 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)); } -- cgit v1.2.3