aboutsummaryrefslogtreecommitdiffstats
path: root/src
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 /src
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.
Diffstat (limited to 'src')
-rw-r--r--src/language-editor.c2
1 files changed, 2 insertions, 0 deletions
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));
}