From 69cb2388f47ee79dfa4a8465aa8f90680890818d Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 21 Apr 2009 00:48:02 +0200 Subject: [PATCH] Add asserts in connection_invalidated_cb --- libempathy/empathy-account-manager.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libempathy/empathy-account-manager.c b/libempathy/empathy-account-manager.c index c8cabdd0..38f8c608 100644 --- a/libempathy/empathy-account-manager.c +++ b/libempathy/empathy-account-manager.c @@ -139,10 +139,16 @@ connection_invalidated_cb (TpProxy *connection, AccountData *data; DEBUG ("Message: %s", message); + account = g_hash_table_lookup (priv->connections, connection); + g_assert (account != NULL); + data = g_hash_table_lookup (priv->accounts, account); + g_assert (data != NULL); + g_object_unref (data->connection); data->connection = NULL; + g_hash_table_remove (priv->connections, connection); } -- 2.39.2