PolicyKit: Branch 'wip/js-rule-files'
David Zeuthen
david at kemper.freedesktop.org
Fri May 18 12:35:06 PDT 2012
src/polkitbackend/polkitbackendjsauthority.c | 11 +++++++++++
1 file changed, 11 insertions(+)
New commits:
commit fcc49885d8198f404bcb9ff70d09b5dcc5e81db2
Author: David Zeuthen <davidz at redhat.com>
Date: Fri May 18 15:34:50 2012 -0400
Collect garbage
Signed-off-by: David Zeuthen <davidz at redhat.com>
diff --git a/src/polkitbackend/polkitbackendjsauthority.c b/src/polkitbackend/polkitbackendjsauthority.c
index 9d721f3..bd881a2 100644
--- a/src/polkitbackend/polkitbackendjsauthority.c
+++ b/src/polkitbackend/polkitbackendjsauthority.c
@@ -270,7 +270,12 @@ reload_scripts (PolkitBackendJsAuthority *authority)
goto out;
}
+ polkit_backend_authority_log (POLKIT_BACKEND_AUTHORITY (authority),
+ "Collecting garbage unconditionally...");
+ JS_GC (authority->priv->cx);
+
load_scripts (authority);
+
out:
;
}
@@ -834,6 +839,9 @@ polkit_backend_js_authority_get_admin_auth_identities (PolkitBackendInteractiveA
/* fallback to root password auth */
if (ret == NULL)
ret = g_list_prepend (ret, polkit_unix_user_new (0));
+
+ JS_MaybeGC (authority->priv->cx);
+
return ret;
}
@@ -932,6 +940,9 @@ polkit_backend_js_authority_check_authorization_sync (PolkitBackendInteractiveAu
if (!good)
ret = POLKIT_IMPLICIT_AUTHORIZATION_NOT_AUTHORIZED;
g_free (ret_str);
+
+ JS_MaybeGC (authority->priv->cx);
+
return ret;
}
More information about the hal-commit
mailing list