| 1 |
diff -up ConsoleKit-0.3.1/src/ck-manager.c.small-fixes ConsoleKit-0.3.1/src/ck-manager.c
|
| 2 |
--- ConsoleKit-0.3.1/src/ck-manager.c.small-fixes 2009-07-31 22:32:32.382848777 -0400
|
| 3 |
+++ ConsoleKit-0.3.1/src/ck-manager.c 2009-07-31 22:34:55.159597733 -0400
|
| 4 |
@@ -810,12 +810,9 @@ check_polkit_permissions (CkManager
|
| 5 |
AuthorizedCallback callback)
|
| 6 |
{
|
| 7 |
const char *sender;
|
| 8 |
- GError *error;
|
| 9 |
PolkitSubject *subject;
|
| 10 |
AuthorizedCallbackData *data;
|
| 11 |
|
| 12 |
- error = NULL;
|
| 13 |
-
|
| 14 |
g_debug ("constructing polkit data");
|
| 15 |
|
| 16 |
/* Check that caller is privileged */
|
| 17 |
@@ -837,6 +834,7 @@ check_polkit_permissions (CkManager
|
| 18 |
NULL,
|
| 19 |
(GAsyncReadyCallback)auth_ready_callback,
|
| 20 |
data);
|
| 21 |
+ g_object_unref (subject);
|
| 22 |
}
|
| 23 |
|
| 24 |
static void
|
| 25 |
@@ -873,14 +871,12 @@ get_polkit_permissions (CkManager *man
|
| 26 |
{
|
| 27 |
const char *sender;
|
| 28 |
PolkitSubject *subject;
|
| 29 |
- GError *error;
|
| 30 |
|
| 31 |
g_debug ("get permissions for action %s", action);
|
| 32 |
|
| 33 |
sender = dbus_g_method_get_sender (context);
|
| 34 |
subject = polkit_system_bus_name_new (sender);
|
| 35 |
|
| 36 |
- error = NULL;
|
| 37 |
polkit_authority_check_authorization (manager->priv->pol_ctx,
|
| 38 |
subject,
|
| 39 |
action,
|
| 40 |
@@ -890,7 +886,6 @@ get_polkit_permissions (CkManager *man
|
| 41 |
(GAsyncReadyCallback) ready_cb,
|
| 42 |
context);
|
| 43 |
g_object_unref (subject);
|
| 44 |
-
|
| 45 |
}
|
| 46 |
#endif
|
| 47 |
|