[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: Sat, 23 Apr 2011 19:14:50 +0000 (UTC)
commit 30e3bd4ffc8adc85add63ab1551ca50b59a8420c
Author: Xan Lopez <xlopez igalia com>
Date: Sat Apr 23 12:13:39 2011 -0700
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 2d29733..b5c953e 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]