[evolution] Bug #665106 - Memory leak from composer setup when opening Preferences



commit da3bd3696eeb149f0fe96281ad079c1dc278dd0d
Author: Milan Crha <mcrha redhat com>
Date:   Fri Mar 16 12:06:18 2012 +0100

    Bug #665106 - Memory leak from composer setup when opening Preferences

 composer/e-msg-composer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 78a16f1..8da9912 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. */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]