[epiphany/gnome-40] window: fix leak in accept_navigation_policy_decision
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-40] window: fix leak in accept_navigation_policy_decision
- Date: Fri, 7 May 2021 21:08:44 +0000 (UTC)
commit 2dec55f369d2818a407fd3a8368ba682621bd3a4
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Tue May 4 13:42:55 2021 -0500
window: fix leak in accept_navigation_policy_decision
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/958>
(cherry picked from commit 56b457758522557cf9a10256103f2fc7c404fb64)
src/ephy-window.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index c760d20c1..857ac81fb 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2070,11 +2070,10 @@ accept_navigation_policy_decision (EphyWindow *window,
g_autoptr (WebKitWebsitePolicies) website_policies = NULL;
EphyPermission permission = EPHY_PERMISSION_UNDECIDED;
EphyEmbedShell *shell;
- const char *origin;
+ g_autofree char *origin = ephy_uri_to_security_origin (uri);
shell = ephy_embed_shell_get_default ();
- origin = ephy_uri_to_security_origin (uri);
if (origin) {
permission = ephy_permissions_manager_get_permission (ephy_embed_shell_get_permissions_manager (shell),
EPHY_PERMISSION_TYPE_AUTOPLAY_POLICY,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]