gio: Use g_steal_handle_id() with signal unsubscriptions

This makes no functional changes, but does tidy the code up a bit and
means `g_steal_handle_id()` gets a bit more testing.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall
2024-10-08 13:55:22 +01:00
parent da5ce72171
commit 6b15af3c4c
15 changed files with 38 additions and 62 deletions

View File

@@ -371,8 +371,7 @@ test_dbus_properties (void)
g_signal_handler_disconnect (controller, notify_id);
notify_id = 0;
g_dbus_connection_signal_unsubscribe (remote_connection, properties_changed_id);
properties_changed_id = 0;
g_dbus_connection_signal_unsubscribe (remote_connection, g_steal_handle_id (&properties_changed_id));
g_debug_controller_dbus_stop (controller);
while (g_main_context_iteration (NULL, FALSE));