mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
gdbus: avoid warning when finalizing a GDBusObjectManagerClient
If the GDBusObjectManagerClient doesn't get a name owner during its lifetime, `on_control_proxy_g_signal' will never be connected to any signal, so we shouldn't dump any warning in that case. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=662858
This commit is contained in:
parent
1fc897352e
commit
9782598b81
@ -201,9 +201,9 @@ g_dbus_object_manager_client_finalize (GObject *object)
|
||||
|
||||
if (manager->priv->control_proxy != NULL)
|
||||
{
|
||||
g_warn_if_fail (g_signal_handlers_disconnect_by_func (manager->priv->control_proxy,
|
||||
on_control_proxy_g_signal,
|
||||
manager) == 1);
|
||||
g_signal_handlers_disconnect_by_func (manager->priv->control_proxy,
|
||||
on_control_proxy_g_signal,
|
||||
manager);
|
||||
g_object_unref (manager->priv->control_proxy);
|
||||
}
|
||||
g_object_unref (manager->priv->connection);
|
||||
|
Loading…
Reference in New Issue
Block a user