diff options
author | Xan Lopez <xlopez@igalia.com> | 2011-04-24 03:13:39 +0800 |
---|---|---|
committer | Xan Lopez <xlopez@igalia.com> | 2011-04-24 03:13:39 +0800 |
commit | 30e3bd4ffc8adc85add63ab1551ca50b59a8420c (patch) | |
tree | aeba25f43d6c7b6913702eda291f44d0bedb8dd1 | |
parent | 248142943ddbe8c980b52eb38fbb157039cb0b44 (diff) | |
download | gsoc2013-epiphany-30e3bd4ffc8adc85add63ab1551ca50b59a8420c.tar gsoc2013-epiphany-30e3bd4ffc8adc85add63ab1551ca50b59a8420c.tar.gz gsoc2013-epiphany-30e3bd4ffc8adc85add63ab1551ca50b59a8420c.tar.bz2 gsoc2013-epiphany-30e3bd4ffc8adc85add63ab1551ca50b59a8420c.tar.lz gsoc2013-epiphany-30e3bd4ffc8adc85add63ab1551ca50b59a8420c.tar.xz gsoc2013-epiphany-30e3bd4ffc8adc85add63ab1551ca50b59a8420c.tar.zst gsoc2013-epiphany-30e3bd4ffc8adc85add63ab1551ca50b59a8420c.zip |
ephy-embed-prefs: plug a couple of leaks
-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 2d2973331..b5c953e8c 100644 --- a/embed/ephy-embed-prefs.c +++ b/embed/ephy-embed-prefs.c @@ -298,6 +298,7 @@ webkit_pref_callback_accept_languages (GSettings *settings, g_strfreev (languages); g_free (langs_str); + g_array_free (array, TRUE); } void @@ -338,8 +339,10 @@ webkit_pref_callback_cookie_accept_policy (GSettings *settings, session = webkit_get_default_session (); jar = soup_session_get_feature (session, SOUP_TYPE_COOKIE_JAR); - if (!jar) + if (!jar) { + g_free (value); return; + } ephy_embed_prefs_set_cookie_jar_policy (SOUP_COOKIE_JAR (jar), value); } |