mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 13:53:30 +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:
@@ -1218,11 +1218,8 @@ maybe_unsubscribe_signals (GDBusObjectManagerClient *manager)
|
||||
g_return_if_fail (G_IS_DBUS_OBJECT_MANAGER_CLIENT (manager));
|
||||
|
||||
if (manager->priv->signal_subscription_id > 0)
|
||||
{
|
||||
g_dbus_connection_signal_unsubscribe (manager->priv->connection,
|
||||
manager->priv->signal_subscription_id);
|
||||
manager->priv->signal_subscription_id = 0;
|
||||
}
|
||||
g_dbus_connection_signal_unsubscribe (manager->priv->connection,
|
||||
g_steal_handle_id (&manager->priv->signal_subscription_id));
|
||||
|
||||
if (manager->priv->match_rule != NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user