From da3bd3696eeb149f0fe96281ad079c1dc278dd0d Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 16 Mar 2012 12:06:18 +0100 Subject: Bug #665106 - Memory leak from composer setup when opening Preferences --- composer/e-msg-composer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'composer/e-msg-composer.c') diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 78a16f1aa1..8da99128e1 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -4954,10 +4954,10 @@ e_load_spell_languages (void) if (language != NULL) spell_languages = g_list_prepend ( spell_languages, (gpointer) language); - - g_free (language_code); } + g_strfreev (strv); + spell_languages = g_list_reverse (spell_languages); /* Pick a default spell language if it came back empty. */ -- cgit v1.2.3