[epiphany/mcatanzaro/leaks: 3/4] window: fix leak in accept_navigation_policy_decision
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/leaks: 3/4] window: fix leak in accept_navigation_policy_decision
- Date: Tue, 4 May 2021 20:25:37 +0000 (UTC)
commit 92703c6467c8d6188d7eb458674d89aa252b8d9e
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Tue May 4 13:42:55 2021 -0500
window: fix leak in accept_navigation_policy_decision
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 e8e91e943..94f38604b 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2058,11 +2058,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]