Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Zbigniew Jędrzejewski-Szmek
polkit
Commits
984d16e6
Commit
984d16e6
authored
Oct 19, 2017
by
Richard Hughes
Committed by
Ray Strode
Nov 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a critical warning on calling polkit_permission_new_sync with no system bus
parent
c3646a22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/polkit/polkitpermission.c
src/polkit/polkitpermission.c
+7
-4
No files found.
src/polkit/polkitpermission.c
View file @
984d16e6
...
...
@@ -137,10 +137,13 @@ polkit_permission_finalize (GObject *object)
g_free
(
permission
->
tmp_authz_id
);
g_object_unref
(
permission
->
subject
);
g_signal_handlers_disconnect_by_func
(
permission
->
authority
,
on_authority_changed
,
permission
);
g_object_unref
(
permission
->
authority
);
if
(
permission
->
authority
!=
NULL
)
{
g_signal_handlers_disconnect_by_func
(
permission
->
authority
,
on_authority_changed
,
permission
);
g_object_unref
(
permission
->
authority
);
}
if
(
G_OBJECT_CLASS
(
polkit_permission_parent_class
)
->
finalize
!=
NULL
)
G_OBJECT_CLASS
(
polkit_permission_parent_class
)
->
finalize
(
object
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment