Commit 2dec55f3 authored by Michael Catanzaro's avatar Michael Catanzaro
Browse files

window: fix leak in accept_navigation_policy_decision

Part-of: <>

(cherry picked from commit 56b457758522557cf9a10256103f2fc7c404fb64)
parent 77b8ece9
......@@ -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),
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment