Commit 77d2ed9c authored by Zeeshan Ali's avatar Zeeshan Ali

service-client: Disconnect signals on finalize

An agent usually outlives clients so if the client object remains hooked
to agent signal, its handler will still be called on signals from agent
and cause a crash since we assume client object to be still around.
parent 323c98d1
......@@ -409,6 +409,9 @@ gclue_service_client_finalize (GObject *object)
g_clear_pointer (&priv->path, g_free);
g_clear_object (&priv->connection);
g_signal_handlers_disconnect_by_func (priv->agent_proxy,
G_CALLBACK (on_agent_props_changed),
g_clear_object (&priv->agent_proxy);
g_clear_object (&priv->locator);
g_clear_object (&priv->location);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment