[epiphany] ephy-embed-prefs: plug a couple of leaks
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-embed-prefs: plug a couple of leaks
- Date: Wed, 15 Jun 2011 17:07:30 +0000 (UTC)
commit 79ec93255d399de253d8fbf74bc93a7b24efb5ea
Author: Xan Lopez <xlopez igalia com>
Date: Wed Jun 15 18:16:56 2011 +0200
ephy-embed-prefs: plug a couple of leaks
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 b6639c1..ae6cec2 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[] =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]