diff options
author | Xan Lopez <xlopez@igalia.com> | 2011-06-16 00:16:56 +0800 |
---|---|---|
committer | Xan Lopez <xlopez@igalia.com> | 2011-06-16 01:06:54 +0800 |
commit | 79ec93255d399de253d8fbf74bc93a7b24efb5ea (patch) | |
tree | 2981d575f8391270c382ee607f4d5edb0d80bb2e /embed/ephy-embed-prefs.c | |
parent | 7db0b59252f18155cc2ee1755b46b69e9d44e86d (diff) | |
download | gsoc2013-epiphany-79ec93255d399de253d8fbf74bc93a7b24efb5ea.tar gsoc2013-epiphany-79ec93255d399de253d8fbf74bc93a7b24efb5ea.tar.gz gsoc2013-epiphany-79ec93255d399de253d8fbf74bc93a7b24efb5ea.tar.bz2 gsoc2013-epiphany-79ec93255d399de253d8fbf74bc93a7b24efb5ea.tar.lz gsoc2013-epiphany-79ec93255d399de253d8fbf74bc93a7b24efb5ea.tar.xz gsoc2013-epiphany-79ec93255d399de253d8fbf74bc93a7b24efb5ea.tar.zst gsoc2013-epiphany-79ec93255d399de253d8fbf74bc93a7b24efb5ea.zip |
ephy-embed-prefs: plug a couple of leaks
Diffstat (limited to 'embed/ephy-embed-prefs.c')
-rw-r--r-- | embed/ephy-embed-prefs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/embed/ephy-embed-prefs.c b/embed/ephy-embed-prefs.c index b6639c116..ae6cec20f 100644 --- a/embed/ephy-embed-prefs.c +++ b/embed/ephy-embed-prefs.c @@ -399,7 +399,7 @@ webkit_pref_callback_enable_spell_checking (GSettings *settings, gpointer data) { gboolean value = FALSE; - char **languages; + char **languages = NULL; char *langs = NULL; value = g_settings_get_boolean (settings, key); @@ -408,10 +408,13 @@ webkit_pref_callback_enable_spell_checking (GSettings *settings, languages = g_settings_get_strv (settings, EPHY_PREFS_WEB_LANGUAGE); langs = g_strjoinv (",", languages); g_strdelimit (langs, "-", '_'); + g_strfreev (languages); } g_object_set (webkit_settings, "enable-spell-checking", value, NULL); g_object_set (webkit_settings, "spell-checking-languages", langs, NULL); + + g_free (langs); } static const PrefData webkit_pref_entries[] = |