Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Georges Basile Stavracas Neto
obs-xdg-portal
Commits
020ef16c
Commit
020ef16c
authored
Nov 21, 2019
by
Georges Basile Stavracas Neto
Browse files
Don't use g_clear_signal_handler()
Not everyone has an updated GLib for that.
parent
99a36503
Changes
1
Hide whitespace changes
Inline
Side-by-side
obs-xdg-portal.c
View file @
020ef16c
...
...
@@ -146,7 +146,9 @@ dbus_call_data_free (dbus_call_data *call)
if
(
call
->
signal_id
)
g_dbus_connection_signal_unsubscribe
(
call
->
xdg
->
connection
,
call
->
signal_id
);
g_clear_signal_handler
(
&
call
->
cancelled_id
,
call
->
xdg
->
cancellable
);
if
(
call
->
cancelled_id
>
0
)
g_signal_handler_disconnect
(
call
->
xdg
->
cancellable
,
call
->
cancelled_id
);
g_clear_pointer
(
&
call
->
request_path
,
g_free
);
g_free
(
call
);
}
...
...
Write
Preview
Supports
Markdown
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