summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2012-05-18 15:34:50 -0400
committerDavid Zeuthen <davidz@redhat.com>2012-05-18 15:34:50 -0400
commitfcc49885d8198f404bcb9ff70d09b5dcc5e81db2 (patch)
treef389f4b73dd603ee830b9332205c8f2b2c918f2d /src
parent82e468369c3a8a0ec49b912660cba107252308b6 (diff)
Collect garbage
Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/polkitbackend/polkitbackendjsauthority.c11
1 files changed, 11 insertions, 0 deletions
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;
}