aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-04-21 06:48:02 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-04-22 18:21:14 +0800
commit69cb2388f47ee79dfa4a8465aa8f90680890818d (patch)
tree47c530387c5910bbef2052246d23ab58cc62954c
parent97a873f3cba2fabfeb15f6bae0c3e2d206b17b5f (diff)
downloadgsoc2013-empathy-69cb2388f47ee79dfa4a8465aa8f90680890818d.tar
gsoc2013-empathy-69cb2388f47ee79dfa4a8465aa8f90680890818d.tar.gz
gsoc2013-empathy-69cb2388f47ee79dfa4a8465aa8f90680890818d.tar.bz2
gsoc2013-empathy-69cb2388f47ee79dfa4a8465aa8f90680890818d.tar.lz
gsoc2013-empathy-69cb2388f47ee79dfa4a8465aa8f90680890818d.tar.xz
gsoc2013-empathy-69cb2388f47ee79dfa4a8465aa8f90680890818d.tar.zst
gsoc2013-empathy-69cb2388f47ee79dfa4a8465aa8f90680890818d.zip
Add asserts in connection_invalidated_cb
-rw-r--r--libempathy/empathy-account-manager.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libempathy/empathy-account-manager.c b/libempathy/empathy-account-manager.c
index c8cabdd0d..38f8c6085 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);
}