Commit 80ee0d95 authored by Zeeshan Ali's avatar Zeeshan Ali

service-manager: Don't unref agent info prematurely

This fixes the bug of geoclue not removing agent proxy when agent goes
away.
parent 971d1c2b
......@@ -228,7 +228,6 @@ typedef struct
static void
add_agent_data_free (AddAgentData *data)
{
g_clear_object (&data->info);
g_clear_pointer (&data->desktop_id, g_free);
g_slice_free (AddAgentData, data);
}
......@@ -243,6 +242,7 @@ on_agent_vanished (GClueClientInfo *info,
user_id = gclue_client_info_get_user_id (info);
g_debug ("Agent for user '%u' vanished", user_id);
g_hash_table_remove (manager->priv->agents, GINT_TO_POINTER (user_id));
g_object_unref (info);
}
static void
......
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