mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +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:
@@ -1984,10 +1984,7 @@ monitor_on_name_vanished (GDBusConnection *connection,
|
||||
g_print ("The name %s does not have an owner\n", name);
|
||||
|
||||
if (monitor_filter_id != 0)
|
||||
{
|
||||
g_dbus_connection_signal_unsubscribe (connection, monitor_filter_id);
|
||||
monitor_filter_id = 0;
|
||||
}
|
||||
g_dbus_connection_signal_unsubscribe (connection, g_steal_handle_id (&monitor_filter_id));
|
||||
}
|
||||
|
||||
static const GOptionEntry monitor_entries[] =
|
||||
|
Reference in New Issue
Block a user