From 30e3bd4ffc8adc85add63ab1551ca50b59a8420c Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sat, 23 Apr 2011 12:13:39 -0700 Subject: ephy-embed-prefs: plug a couple of leaks --- embed/ephy-embed-prefs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'embed') 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); } -- cgit v1.2.3