mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 06:33:41 +02:00
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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user